Versions in this module Expand all Collapse all v1 v1.4.2 May 30, 2023 v1.4.0 May 30, 2023 Changes in this version + func FillRuntimeKey() error + func FillRuntimePaths() error + func GetNodesAddr() []string + func LoadConfig(path string) error + func LoadConfigToVar(path string, v *GlobalConfig) error + func SaveConfig(path string) error + type BanKeyConfig struct + BadTime int + BadTx int + BanTime int + type BlockSyncMethod struct + Method string + type BootstrapNodeConfig struct + NodesAddr []string + type CentrifugoConfig struct + Key string + Secret string + URL string + type CryptoSettings struct + Cryptoer string + Hasher string + type DBConfig struct + Host string + IdleInTxTimeout int + LockTimeout int + MaxIdleConns int + MaxOpenConns int + Name string + Password string + Port int + User string + type DirectoryConfig struct + DataDir string + FirstBlockPath string + KeysDir string + LockFilePath string + PidFilePath string + TempDir string + type GlobalConfig struct + BanKey BanKeyConfig + BlockSyncMethod BlockSyncMethod + BootNodes BootstrapNodeConfig + Centrifugo CentrifugoConfig + ConfigPath string + CryptoSettings CryptoSettings + DB DBConfig + DirPathConf DirectoryConfig + FuncBench bool + HTTP HostPort + JsonRPC struct{ ... } + KeyID int64 + LocalConf LocalConfig + Log LogConfig + Redis RedisConfig + StatsD StatsDConfig + TCPServer HostPort + TLSConf TLSConfig + TestRollBack bool + TokenMovement TokenMovementConfig + var Config GlobalConfig + func GetConfigFromPath(path string) (*GlobalConfig, error) + func (c *GlobalConfig) GetPidPath() string + func (c GlobalConfig) IsCLB() bool + func (c GlobalConfig) IsCLBMaster() bool + func (c GlobalConfig) IsNode() bool + func (c GlobalConfig) IsSubNode() bool + func (c GlobalConfig) IsSupportingCLB() bool + type HostPort struct + Host string + Port int + func (h HostPort) Str() string + type LocalConfig struct + HTTPServerMaxBodySize int64 + MaxPageGenerationTime int64 + NetworkID int64 + RunNodeMode string + type LogConfig struct + LogFormat string + LogLevel string + LogTo string + Syslog Syslog + type RedisConfig struct + DbName int + Enable bool + Host string + Password string + Port int + type RunMode string + func (rm RunMode) IsCLB() bool + func (rm RunMode) IsCLBMaster() bool + func (rm RunMode) IsNode() bool + func (rm RunMode) IsSubNode() bool + func (rm RunMode) IsSupportingCLB() bool + type StatsDConfig struct + Host string + Name string + Port int + type Syslog struct + Facility string + Tag string + type TLSConfig struct + Enabled bool + TLSCert string + TLSKey string + type TokenMovementConfig struct + From string + Host string + Password string + Port int + Subject string + To string + Username string