Documentation

Index

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

func (c *Config) GetAutoRelaySetting() bool

GetAutoRelaySetting defines whether to run the node in autorelay mode or not

func (*Config) GetDatabasePath

func (c *Config) GetDatabasePath() string

GetDatabasePath defines the host directory for the database

func (*Config) GetDebugSetting

func (c *Config) GetDebugSetting() bool

GetDebugSetting defines whether to run the debug pinger or not

func (*Config) GetExternalIP

func (c *Config) GetExternalIP() string

GetExternalIP defines the listened external IP for P2P

func (*Config) GetIPFSPeerSetting

func (c *Config) GetIPFSPeerSetting() bool

GetIPFSPeerSetting defines if we use IPFS bootstrap peers for discovery or just our own

func (*Config) GetInMemoryDatabaseSetting

func (c *Config) GetInMemoryDatabaseSetting() bool

GetInMemoryDatabaseSetting defines if RAM is used instead of LevelDB for storage

func (*Config) GetLogFormat

func (c *Config) GetLogFormat() string

GetLogFormat gets configured log format for uber/zap

func (*Config) GetLogLevel

func (c *Config) GetLogLevel() string

GetLogLevel gets configured log level for uber/zap

func (*Config) GetNATPortMapSetting

func (c *Config) GetNATPortMapSetting() bool

GetNATPortMapSetting defines whether to use NAT port mapping or not

func (*Config) GetP2PPort

func (c *Config) GetP2PPort() string

GetP2PPort defines the listened P2P port

func (*Config) GetRPCPort

func (c *Config) GetRPCPort() string

GetRPCPort defines the port the gRPC is running at

func (*Config) GetRelaySetting

func (c *Config) GetRelaySetting() bool

GetRelaySetting defines whether to run the node in relay mode or not

func (*Config) GetStackTraceSetting

func (c *Config) GetStackTraceSetting() bool

GetStackTraceSetting defines whether to run the debug pinger or not

func (*Config) GetWebsocketEnable

func (c *Config) GetWebsocketEnable() bool

GetWebsocketEnable defines if websocket connections are allowed. Starts waiting http request using websocket.port

func (*Config) GetWebsocketPort

func (c *Config) GetWebsocketPort() string

GetWebsocketPort defines port for websocket connections. websocket.enable must be true or the port is not used.

func (*Config) ReadConfig

func (c *Config) ReadConfig(configPath string)

ReadConfig opens the configuration file and initializes viper

Source Files