prysm

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClientMaxReceiveMessageSize = 67108864

Functions

This section is empty.

Types

type ChainHeadSubscription

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

func NewChainHeadSubscription

func NewChainHeadSubscription() *ChainHeadSubscription

func (*ChainHeadSubscription) Channel

func (s *ChainHeadSubscription) Channel() <-chan types.ChainHead

func (*ChainHeadSubscription) Close

func (s *ChainHeadSubscription) Close()

func (*ChainHeadSubscription) FeedFromStream

type Config

type Config struct {
	GRPCAddr string
	TLSCert  string
}

type PrysmGRPCClient added in v0.0.4

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

func New

func New(config Config) *PrysmGRPCClient

func (*PrysmGRPCClient) GetAttestationsInPoolCount added in v0.0.4

func (c *PrysmGRPCClient) GetAttestationsInPoolCount() (int64, error)

func (*PrysmGRPCClient) GetChainHead added in v0.0.4

func (c *PrysmGRPCClient) GetChainHead() (*types.ChainHead, error)

func (*PrysmGRPCClient) GetGenesisTime added in v0.0.4

func (c *PrysmGRPCClient) GetGenesisTime() (int64, error)

func (*PrysmGRPCClient) GetPeerCount added in v0.0.4

func (c *PrysmGRPCClient) GetPeerCount() (int64, error)

func (*PrysmGRPCClient) GetSyncStatus added in v0.0.4

func (c *PrysmGRPCClient) GetSyncStatus() (bool, error)

func (*PrysmGRPCClient) GetVersion added in v0.0.4

func (c *PrysmGRPCClient) GetVersion() (string, error)

func (*PrysmGRPCClient) SubscribeChainHeads added in v0.0.4

func (c *PrysmGRPCClient) SubscribeChainHeads() (beacon.ChainHeadSubscription, error)

Jump to

Keyboard shortcuts

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