Documentation
¶
Index ¶
- Constants
- func CalcAppDataDir() string
- func SaveConfig(conf *Config, path string) error
- type Config
- func (c *Config) DevMode() bool
- func (c *Config) GetBootstrapPeers() []peer.AddrInfo
- func (c *Config) GetListenAddresses() []multiaddr.Multiaddr
- func (c *Config) LogLevel() zapcore.Level
- func (c *Config) Path() string
- func (c *Config) PeerstoreDir() string
- func (c *Config) PrivKey() []byte
- func (c *Config) SetIdentity(key crypto.PrivKey, id peer.ID)
- func (c *Config) SetListenAddresses(multiaddrs []multiaddr.Multiaddr)
- type P2pNode
Constants ¶
View Source
const ( AppConfigFilename = "config.yaml" DhtPeerstoreDataDirectory = "peerstore" DefaultHTTPPort = 9010 )
View Source
const ( Version = "v0.9.0" UserAgent = UserAgentPrefix + Version UserAgentPrefix = "awl-bootstrap/" )
Variables ¶
This section is empty.
Functions ¶
func CalcAppDataDir ¶
func CalcAppDataDir() string
func SaveConfig ¶ added in v0.9.0
Types ¶
type Config ¶
func LoadConfig ¶
func NewExampleConfig ¶ added in v0.9.0
func NewExampleConfig() *Config
func (*Config) GetBootstrapPeers ¶
func (*Config) GetListenAddresses ¶
func (*Config) PeerstoreDir ¶
func (*Config) SetListenAddresses ¶
Click to show internal directories.
Click to hide internal directories.