config

package
v0.0.0-...-a5ce5ae Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Cfg_chain_genesisInfo = "chain.genesis"
	Cfg_chain_key         = "chain.key"
)
View Source
const (
	Cfg_p2p_connections_peerCountLow  = "p2p.connections.peerCountLow"
	Cfg_p2p_connections_peerCountHigh = "p2p.connections.peerCountHigh"
	Cfg_p2p_bootstartPeers            = "p2p.bootstartPeers"
	Cfg_p2p_listeningAddrs            = "p2p.listeningAddrs"
	Cfg_p2p_enableRelay               = "p2p.enableRelay"
	Cfg_p2p_identityFile              = "p2p.identityFile"
	Cfg_p2p_ipfsRepo                  = "p2p.ipfsRepo"
	Cfg_p2p_advertiseAddrs            = "p2p.advertiseAddrs"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Chain

type Chain struct {
	Genesis storage.GenesisInfo
	Key     string
}

type Config

type Config struct {
	IdentityStore   string
	RawRandomSource bool
	// contains filtered or unexported fields
}

func GetConfig

func GetConfig() (*Config, error)

func (*Config) Chain

func (c *Config) Chain() *Chain

func (*Config) P2P

func (c *Config) P2P() *P2P

type P2P

type P2P struct {
	Connections struct {
		PeersCountHigh int
		PeersCountLow  int
	}
	BootstrapPeers []string
	ListenAddrs    []string
	Relay          bool
	IdentityFile   string
	IpfsRepo       string
	AdvertiseAddrs []string
}

Jump to

Keyboard shortcuts

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