clients

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: GPL-3.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientConfig

type ClientConfig struct {
	Name             string            `yaml:"name"`
	ConsensusURL     string            `yaml:"consensusUrl"`
	ConsensusHeaders map[string]string `yaml:"consensusHeaders"`
	ExecutionURL     string            `yaml:"executionUrl"`
	ExecutionHeaders map[string]string `yaml:"executionHeaders"`
}

type ClientPool

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

func NewClientPool

func NewClientPool(logger logrus.FieldLogger) (*ClientPool, error)

func NewClientPoolWithContext added in v0.0.3

func NewClientPoolWithContext(ctx context.Context, logger logrus.FieldLogger) (*ClientPool, error)

func (*ClientPool) AddClient

func (pool *ClientPool) AddClient(config *ClientConfig) error

func (*ClientPool) Close added in v0.0.3

func (pool *ClientPool) Close()

func (*ClientPool) GetAllClients

func (pool *ClientPool) GetAllClients() []*PoolClient

func (*ClientPool) GetClientsByNamePatterns

func (pool *ClientPool) GetClientsByNamePatterns(includePattern, excludePattern string) []*PoolClient

func (*ClientPool) GetConsensusPool

func (pool *ClientPool) GetConsensusPool() *consensus.Pool

func (*ClientPool) GetExecutionPool

func (pool *ClientPool) GetExecutionPool() *execution.Pool

type PoolClient

type PoolClient struct {
	Config          *ClientConfig
	ConsensusClient *consensus.Client
	ExecutionClient *execution.Client
}

Directories

Path Synopsis
rpc
rpc

Jump to

Keyboard shortcuts

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