clients

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: GPL-3.0 Imports: 8 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 (*ClientPool) AddClient

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

func (*ClientPool) GetAllClients

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

func (*ClientPool) GetClientsByNamePatterns

func (pool *ClientPool) GetClientsByNamePatterns(patterns []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