Documentation ¶
Index ¶
- func Health(ctx context.Context, cli eth2api.Client) (syncing bool, err error)
- func Identity(ctx context.Context, cli eth2api.Client, dest *eth2api.NetworkIdentity) error
- func NodeVersion(ctx context.Context, cli eth2api.Client, dest *eth2api.NodeVersionResponse) error
- func Peer(ctx context.Context, cli eth2api.Client, peerId eth2api.ApiPeerId, ...) (exists bool, err error)
- func PeerCount(ctx context.Context, cli eth2api.Client, dest *eth2api.PeerCountResponse) error
- func Peers(ctx context.Context, cli eth2api.Client, state []eth2api.ConnectionState, ...) error
- func SyncingStatus(ctx context.Context, cli eth2api.Client, dest *eth2api.SyncingStatus) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Health ¶
Checks node health. Healthy = no error. May be syncing, capable of serving incomplete data.
Err will be non-nil when syncing.
func NodeVersion ¶
Requests that the beacon node identify information about its implementation in a format similar to a [HTTP User-Agent](https://tools.ietf.org/html/rfc7231#section-5.5.3) field.
func Peer ¶
func Peer(ctx context.Context, cli eth2api.Client, peerId eth2api.ApiPeerId, dest *eth2api.Peer) (exists bool, err error)
Retrieves data about the given peer
func Peers ¶
func Peers(ctx context.Context, cli eth2api.Client, state []eth2api.ConnectionState, direction []eth2api.ConnectionDirection, dest *[]eth2api.Peer) error
Retrieves data about the node's network peers. By default this returns all peers. Different query params are combined using AND conditions. Array items with OR conditions.
func SyncingStatus ¶
Requests the beacon node to describe if it's currently syncing or not, and if it is, what block it is up to.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.