geth

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mode

type Mode string
const (
	Native   Mode = "native"
	External Mode = "external"
	Infura   Mode = "infura"
	Light    Mode = "light"
	Unknown  Mode = "unknown"
)

type RpcClient

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

func NewRpcClient

func NewRpcClient(config config.RpcConfig) *RpcClient

func (*RpcClient) Close

func (t *RpcClient) Close() error

func (*RpcClient) EthBlockNumber

func (t *RpcClient) EthBlockNumber() (int64, error)

func (*RpcClient) EthSyncing

func (t *RpcClient) EthSyncing() (*Syncing, error)

type Service

type Service struct {
	*core.SingleContainerService
	*RpcClient
	// contains filtered or unexported fields
}

func New

func New(
	name string,
	services map[string]core.Service,
	containerName string,
	dockerClient *docker.Client,
	l2ServiceName string,
	lightProviders []string,
	rpcConfig config.RpcConfig,
) *Service

func (*Service) Close

func (t *Service) Close() error

func (*Service) GetStatus

func (t *Service) GetStatus(ctx context.Context) string

type Syncing

type Syncing struct {
	CurrentBlock  int64
	HighestBlock  int64
	KnownStates   int64
	PulledStates  int64
	StartingBlock int64
}

Jump to

Keyboard shortcuts

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