Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultConfigPath ¶
func GetDefaultConfigPath() string
GetDefaultConfigPath returns the default path for the config file
func SaveConfig ¶
SaveConfig saves the configuration to the specified file
Types ¶
type Config ¶
type Config struct {
ActiveProfile string `json:"active_profile"`
Profiles map[string]Profile `json:"profiles"`
}
Config represents the application configuration
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig creates a new configuration with default values
func LoadConfig ¶
LoadConfig loads the configuration from the specified file
func (*Config) GetActiveProfile ¶
GetActiveProfile returns the active profile from the configuration
type Profile ¶
type Profile struct {
Format string `json:"format"`
Fields []string `json:"fields"`
MaxDepth int `json:"max_depth"`
HideMissing bool `json:"hide_missing"`
Filters []string `json:"filters"`
Excludes []string `json:"excludes"`
LevelMappings map[string]string `json:"level_mappings"`
AutoConvertLevel bool `json:"auto_convert_level"`
TimeFormat string `json:"time_format"`
}
Profile represents a single configuration profile
Click to show internal directories.
Click to hide internal directories.