Documentation
¶
Index ¶
- type Config
- func (c *Config) GetInt(key string) int
- func (c *Config) GetPathInsideVarDir(path ...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, RootPath, ConfigFilePath, Token string Port int IsDevMode bool // contains filtered or unexported fields }
Config stores agent configuration params
func (*Config) GetPathInsideVarDir ¶ added in v0.4.19
func (*Config) GetVarDirAbsPath ¶
GetVarDirAbsPath returns absolute path to var directory
Click to show internal directories.
Click to hide internal directories.