transport

package
v0.0.0-...-b915c30 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 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

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

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

func (*Config) Transport

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