v1

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonUint64 added in v0.0.13

type JsonUint64 uint64

JsonUint64 is a helper to make both string and integer formatted uint64 numbers unmarshal correctly.

func (*JsonUint64) UnmarshalJSON added in v0.0.13

func (v *JsonUint64) UnmarshalJSON(b []byte) error

type V1HTTPClient

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

func New

func New(httpClient *http.Client, baseURL string) *V1HTTPClient

func (*V1HTTPClient) GetAttestationsInPoolCount

func (s *V1HTTPClient) GetAttestationsInPoolCount() (int64, error)

func (*V1HTTPClient) GetChainHead

func (s *V1HTTPClient) GetChainHead() (*types.ChainHead, error)

func (*V1HTTPClient) GetGenesisTime

func (s *V1HTTPClient) GetGenesisTime() (int64, error)

func (*V1HTTPClient) GetPeerCount

func (s *V1HTTPClient) GetPeerCount() (int64, error)

func (*V1HTTPClient) GetSyncStatus

func (s *V1HTTPClient) GetSyncStatus() (bool, error)

func (*V1HTTPClient) GetVersion

func (s *V1HTTPClient) GetVersion() (string, error)

func (*V1HTTPClient) SubscribeChainHeads

func (s *V1HTTPClient) SubscribeChainHeads() (beacon.ChainHeadSubscription, error)

Jump to

Keyboard shortcuts

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