config

package
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentConfig

type AgentConfig struct {
	*viper.Viper
}

func NewAgentConfig

func NewAgentConfig() AgentConfig

func (AgentConfig) BindAddress

func (b AgentConfig) BindAddress() string

func (AgentConfig) DBName

func (b AgentConfig) DBName() string

func (AgentConfig) DataDir

func (b AgentConfig) DataDir() string

func (AgentConfig) Host

func (b AgentConfig) Host() string

func (AgentConfig) Load

func (b AgentConfig) Load(configPath string) AgentConfig

func (AgentConfig) LogDir

func (b AgentConfig) LogDir() string

func (AgentConfig) LogLevel

func (b AgentConfig) LogLevel() zapcore.Level

func (AgentConfig) Port

func (b AgentConfig) Port() uint

func (AgentConfig) RetentionCheckInterval

func (b AgentConfig) RetentionCheckInterval() uint

func (AgentConfig) RetentionPeriod

func (b AgentConfig) RetentionPeriod() uint32

func (AgentConfig) SetBindAddress

func (b AgentConfig) SetBindAddress(name string)

func (AgentConfig) SetDBName

func (b AgentConfig) SetDBName(name string)

func (AgentConfig) SetDataDir

func (b AgentConfig) SetDataDir(dataDir string)

func (AgentConfig) SetHost

func (b AgentConfig) SetHost(name string)

func (AgentConfig) SetLogDir

func (b AgentConfig) SetLogDir(logDir string)

func (AgentConfig) SetLogLevel

func (b AgentConfig) SetLogLevel(logLevel zapcore.Level)

func (AgentConfig) SetPort

func (b AgentConfig) SetPort(port uint)

func (AgentConfig) SetRetentionCheckInterval

func (b AgentConfig) SetRetentionCheckInterval(interval uint)

func (AgentConfig) SetRetentionPeriod

func (b AgentConfig) SetRetentionPeriod(retention uint32)

func (AgentConfig) SetTimeout

func (b AgentConfig) SetTimeout(timeout int)

func (AgentConfig) SetZKQuorum

func (b AgentConfig) SetZKQuorum(quorum []string)

func (AgentConfig) SetZKTimeout

func (b AgentConfig) SetZKTimeout(timeout uint)

func (AgentConfig) Timeout

func (b AgentConfig) Timeout() int

func (AgentConfig) ZKQuorum

func (b AgentConfig) ZKQuorum() []string

func (AgentConfig) ZKTimeout

func (b AgentConfig) ZKTimeout() uint

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL