Documentation ¶
Index ¶
- type Config
- func (c *Config) GetInt(key string) int
- func (c *Config) GetLoggerFileAbsPath() string
- func (c *Config) GetScriptsDirAbsPath() 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 LogLevel, Port int // contains filtered or unexported fields }
Config stores agent configuration params
func (*Config) GetLoggerFileAbsPath ¶
GetLoggerFileAbsPath returns absolute path to logger file
func (*Config) GetScriptsDirAbsPath ¶
GetScriptsDirAbsPath returns absolute path to scripts directory
func (*Config) GetVarDirAbsPath ¶
GetVarDirAbsPath returns absolute path to var directory
Click to show internal directories.
Click to hide internal directories.