Documentation
¶
Index ¶
- Constants
- func CalcAppDataDir() string
- 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) Save()
- 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 = 9090 )
View Source
const ( Version = "v0.7.0" UserAgent = UserAgentPrefix + Version UserAgentPrefix = "awl-bootstrap/" )
Variables ¶
This section is empty.
Functions ¶
func CalcAppDataDir ¶
func CalcAppDataDir() string
Types ¶
type Config ¶
type Config struct { sync.RWMutex P2pNode P2pNode LoggerLevel string HttpListenAddress string // contains filtered or unexported fields }
func LoadConfig ¶
func (*Config) GetBootstrapPeers ¶
func (*Config) GetListenAddresses ¶
func (c *Config) GetListenAddresses() []multiaddr.Multiaddr
func (*Config) PeerstoreDir ¶
func (*Config) SetListenAddresses ¶
func (c *Config) SetListenAddresses(multiaddrs []multiaddr.Multiaddr)
Click to show internal directories.
Click to hide internal directories.