client

package
v0.0.20-delta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GRPCClient

type GRPCClient struct {
	// contains filtered or unexported fields
}

GRPCClient

func (*GRPCClient) CanonicalHeadSlot

func (vanClient *GRPCClient) CanonicalHeadSlot() (types.Slot, error)

CanonicalHeadSlot returns the slot of canonical block currently found in the beacon chain via RPC.

func (*GRPCClient) Close

func (ec *GRPCClient) Close()

Close

func (*GRPCClient) StreamMinimalConsensusInfo

func (vanClient *GRPCClient) StreamMinimalConsensusInfo(epoch uint64) (
	stream ethpb.BeaconChain_StreamMinimalConsensusInfoClient,
	err error,
)

func (*GRPCClient) StreamNewPendingBlocks

func (vanClient *GRPCClient) StreamNewPendingBlocks() (
	stream ethpb.BeaconChain_StreamNewPendingBlocksClient,
	err error,
)

StreamNewPendingBlocks

type VanguardClient

type VanguardClient interface {
	CanonicalHeadSlot() (types.Slot, error)
	StreamNewPendingBlocks() (ethpb.BeaconChain_StreamNewPendingBlocksClient, error)
	StreamMinimalConsensusInfo(epoch uint64) (stream ethpb.BeaconChain_StreamMinimalConsensusInfoClient, err error)
	Close()
}

func Dial

func Dial(ctx context.Context, rawurl string, grpcRetryDelay time.Duration,
	grpcRetries uint, maxCallRecvMsgSize int) (VanguardClient, error)

Dial connects a client to the given URL.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL