config

package
v0.0.0-...-6d5efb9 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// libp2p listen address,example: /ip4/0.0.0.0/tcp/4005
	Address string
	// keypair store path
	Root string
	// bootstrap address
	Bootstrap []string
}

func (*Config) BootstrapMultiAddrs

func (c *Config) BootstrapMultiAddrs() []peer.AddrInfo

func (*Config) MultiAddr

func (c *Config) MultiAddr() multiaddr.Multiaddr

func (*Config) PrivateNetworkKey

func (c *Config) PrivateNetworkKey() pnet.PSK

func (*Config) PrivateNodeKey

func (c *Config) PrivateNodeKey() crypto.PrivKey

Jump to

Keyboard shortcuts

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