Documentation ¶
Index ¶
- Variables
- type ChainHeadSubscription
- type Config
- type PrysmGRPCClient
- func (c *PrysmGRPCClient) GetAttestationsInPoolCount() (int64, error)
- func (c *PrysmGRPCClient) GetChainHead() (*types.ChainHead, error)
- func (c *PrysmGRPCClient) GetGenesisTime() (int64, error)
- func (c *PrysmGRPCClient) GetPeerCount() (int64, error)
- func (c *PrysmGRPCClient) GetSyncStatus() (bool, error)
- func (c *PrysmGRPCClient) GetVersion() (string, error)
- func (c *PrysmGRPCClient) SubscribeChainHeads() (beacon.ChainHeadSubscription, error)
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 ¶
func (s *ChainHeadSubscription) FeedFromStream(stream prysmAPI.BeaconChain_StreamChainHeadClient)
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)
Click to show internal directories.
Click to hide internal directories.