Documentation
¶
Index ¶
- type Config
- func (c *Config) GetAutoRelaySetting() bool
- func (c *Config) GetDatabasePath() string
- func (c *Config) GetDebugSetting() bool
- func (c *Config) GetExternalIP() string
- func (c *Config) GetIPFSPeerSetting() bool
- func (c *Config) GetInMemoryDatabaseSetting() bool
- func (c *Config) GetLogFormat() string
- func (c *Config) GetLogLevel() string
- func (c *Config) GetNATPortMapSetting() bool
- func (c *Config) GetP2PPort() string
- func (c *Config) GetRPCPort() string
- func (c *Config) GetRelaySetting() bool
- func (c *Config) GetStackTraceSetting() bool
- func (c *Config) GetWebsocketEnable() bool
- func (c *Config) GetWebsocketPort() string
- func (c *Config) ReadConfig(configPath string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config has an initialized version of spf13/viper
func (*Config) GetAutoRelaySetting ¶
GetAutoRelaySetting defines whether to run the node in autorelay mode or not
func (*Config) GetDatabasePath ¶
GetDatabasePath defines the host directory for the database
func (*Config) GetDebugSetting ¶
GetDebugSetting defines whether to run the debug pinger or not
func (*Config) GetExternalIP ¶
GetExternalIP defines the listened external IP for P2P
func (*Config) GetIPFSPeerSetting ¶
GetIPFSPeerSetting defines if we use IPFS bootstrap peers for discovery or just our own
func (*Config) GetInMemoryDatabaseSetting ¶
GetInMemoryDatabaseSetting defines if RAM is used instead of LevelDB for storage
func (*Config) GetLogFormat ¶
GetLogFormat gets configured log format for uber/zap
func (*Config) GetLogLevel ¶
GetLogLevel gets configured log level for uber/zap
func (*Config) GetNATPortMapSetting ¶
GetNATPortMapSetting defines whether to use NAT port mapping or not
func (*Config) GetP2PPort ¶
GetP2PPort defines the listened P2P port
func (*Config) GetRPCPort ¶
GetRPCPort defines the port the gRPC is running at
func (*Config) GetRelaySetting ¶
GetRelaySetting defines whether to run the node in relay mode or not
func (*Config) GetStackTraceSetting ¶
GetStackTraceSetting defines whether to run the debug pinger or not
func (*Config) GetWebsocketEnable ¶
GetWebsocketEnable defines if websocket connections are allowed. Starts waiting http request using websocket.port
func (*Config) GetWebsocketPort ¶
GetWebsocketPort defines port for websocket connections. websocket.enable must be true or the port is not used.
func (*Config) ReadConfig ¶
ReadConfig opens the configuration file and initializes viper