transport

package
v0.11.0-dev.6 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BootstrapDependencies

type BootstrapDependencies struct {
	Logger log.Logger
}

type Config added in v0.10.0

type Config struct {
	LibP2P *libP2PConfig `hcl:"libp2p,block,optional"`
	WebAPI *webAPIConfig `hcl:"webapi,block,optional"`

	// HCL fields:
	Range   hcl.Range       `hcl:",range"`
	Content hcl.BodyContent `hcl:",content"`
	// contains filtered or unexported fields
}

func (*Config) LibP2PBootstrap added in v0.10.0

func (c *Config) LibP2PBootstrap(d BootstrapDependencies) (transport.Transport, error)

func (*Config) Transport added in v0.10.0

func (c *Config) Transport(d Dependencies) (transport.Transport, error)

type Dependencies

type Dependencies struct {
	Keys     ethereum.KeyRegistry
	Clients  ethereum.ClientRegistry
	Messages map[string]transport.Message
	Logger   log.Logger
}

Jump to

Keyboard shortcuts

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