Documentation ¶
Index ¶
- Variables
- type Client
- type MetadataService
- func (m *MetadataService) Client(ctx context.Context) string
- func (m *MetadataService) ClientVersion() string
- func (m *MetadataService) IsSynced() bool
- func (m *MetadataService) Name() Name
- func (m *MetadataService) OnReady(ctx context.Context, cb func(context.Context) error)
- func (m *MetadataService) Ready(ctx context.Context) error
- func (m *MetadataService) RefreshAll(ctx context.Context) error
- func (m *MetadataService) Start(ctx context.Context) error
- func (m *MetadataService) Stop(ctx context.Context) error
- func (m *MetadataService) Web3ClientVersion(ctx context.Context) (string, error)
- type Name
- type Service
Constants ¶
This section is empty.
Variables ¶
View Source
var AllClients = []Client{ ClientUnknown, ClientGeth, ClientNethermind, ClientBesu, ClientErigon, ClientReth, ClientEthereumJS, }
Functions ¶
This section is empty.
Types ¶
type MetadataService ¶
func NewMetadataService ¶
func NewMetadataService(log logrus.FieldLogger, rpc *ethrpc.Provider) MetadataService
func (*MetadataService) ClientVersion ¶
func (m *MetadataService) ClientVersion() string
func (*MetadataService) IsSynced ¶
func (m *MetadataService) IsSynced() bool
func (*MetadataService) Name ¶
func (m *MetadataService) Name() Name
func (*MetadataService) RefreshAll ¶
func (m *MetadataService) RefreshAll(ctx context.Context) error
func (*MetadataService) Web3ClientVersion ¶
func (m *MetadataService) Web3ClientVersion(ctx context.Context) (string, error)
Click to show internal directories.
Click to hide internal directories.