Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureConfigDir ¶
func EnsureConfigDir() error
EnsureConfigDir creates the configuration directory if it doesn't exist
func GetConfigPath ¶
func GetConfigPath() string
GetConfigPath returns the default configuration file path
func SaveConfig ¶
SaveConfig saves configuration to a file
Types ¶
type AnalyzerConfig ¶
type Config ¶
type Config struct {
Parser ParserConfig `json:"parser" yaml:"parser"`
Analyzer AnalyzerConfig `json:"analyzer" yaml:"analyzer"`
Logger LoggerConfig `json:"logger" yaml:"logger"`
Output OutputConfig `json:"output" yaml:"output"`
}
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig returns a configuration with sensible defaults
func LoadConfig ¶
LoadConfig loads configuration from a file
type FilterConfig ¶
type FilterConfig struct {
// Minimum duration in milliseconds
MinDurationMs int64 `json:"min_duration_ms" yaml:"min_duration_ms"`
// Maximum duration in milliseconds
MaxDurationMs int64 `json:"max_duration_ms" yaml:"max_duration_ms"`
// Include only specific query types
QueryTypes []string `json:"query_types" yaml:"query_types"`
// Exclude system queries
ExcludeSystem bool `json:"exclude_system" yaml:"exclude_system"`
}
type LoggerConfig ¶
type LoggerConfig struct {
DefaultFormat string `json:"default_format" yaml:"default_format"`
// Maximum log file size to process (in MB)
MaxFileSizeMB int `json:"max_file_size_mb" yaml:"max_file_size_mb"`
// Filter settings
Filters FilterConfig `json:"filters" yaml:"filters"`
}
type OutputConfig ¶
type OutputConfig struct {
// Output format (json, table, csv)
Format string `json:"format" yaml:"format"`
// Pretty print JSON output
PrettyJSON bool `json:"pretty_json" yaml:"pretty_json"`
// Include timestamps in output
IncludeTimestamps bool `json:"include_timestamps" yaml:"include_timestamps"`
// Output file path (empty for stdout)
OutputFile string `json:"output_file" yaml:"output_file"`
}
type ParserConfig ¶
Click to show internal directories.
Click to hide internal directories.