Documentation
¶
Index ¶
- type Config
- func (c *Config) GetInt(key string) int
- func (c *Config) GetLoggerFileAbsPath() string
- func (c *Config) GetModuleVarAbsDir(id string) string
- func (c *Config) GetString(key string) string
- func (c *Config) GetVarDirAbsPath() string
- func (c *Config) IsSet(key string) bool
- func (c *Config) Merge() error
- func (c *Config) ToMap() map[string]string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { LogFile, ExecutablePath, ConfigPath, Token string Port int IsDevMode bool // contains filtered or unexported fields }
Config stores agent configuration params
func (*Config) GetLoggerFileAbsPath ¶
GetLoggerFileAbsPath returns absolute path to logger file
func (*Config) GetModuleVarAbsDir ¶ added in v0.3.0
GetModuleVarDir returns module var directiry absolute path
func (*Config) GetVarDirAbsPath ¶
GetVarDirAbsPath returns absolute path to var directory
Click to show internal directories.
Click to hide internal directories.