mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-10 16:08:26 -05:00
17 lines
498 B
Go
17 lines
498 B
Go
package iface
|
|
|
|
import (
|
|
"context"
|
|
|
|
ethpb "github.com/OffchainLabs/prysm/v7/proto/prysm/v1alpha1"
|
|
"github.com/golang/protobuf/ptypes/empty"
|
|
)
|
|
|
|
type NodeClient interface {
|
|
SyncStatus(ctx context.Context, in *empty.Empty) (*ethpb.SyncStatus, error)
|
|
Genesis(ctx context.Context, in *empty.Empty) (*ethpb.Genesis, error)
|
|
Version(ctx context.Context, in *empty.Empty) (*ethpb.Version, error)
|
|
Peers(ctx context.Context, in *empty.Empty) (*ethpb.Peers, error)
|
|
IsHealthy(ctx context.Context) bool
|
|
}
|