transport

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: AGPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const LoggerTag = "CONFIG_LIBP2P"

Variables

This section is empty.

Functions

This section is empty.

Types

type BootstrapDependencies

type BootstrapDependencies struct {
	Logger log.Logger

	// Application info:
	AppName    string
	AppVersion string
}

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.Service, error)

func (*Config) Transport added in v0.10.0

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

type Dependencies

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

	// Application info:
	AppName    string
	AppVersion string
}

Jump to

Keyboard shortcuts

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