Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigDir ¶
GetConfigDir returns the configuration directory
Types ¶
type AppConfig ¶
type CertstreamConfig ¶
type CertstreamConfig struct {
Mode string `mapstructure:"mode"`
}
CertstreamConfig is the configuration struct for certstream
type Config ¶
type Config struct { Log LogConfig `mapstructure:"log"` Stream StreamConfig `mapstructure:"stream"` OpenAI OpenAIConfig `mapstructure:"openai"` }
Config is the configuration struct
func LoadConfig ¶
LoadConfig loads the configuration from a YAML file
type LogConfig ¶
type LogConfig struct { // Certwatcher logs file File string `mapstructure:"file"` // Debug Level set default to Info Level string `mapstructure:"level"` }
LogConfig is the configuration struct for logging
type OpenAIConfig ¶
type OpenAIConfig struct {
APIKey string `yaml:"apikey"`
}
type StreamConfig ¶
type StreamConfig struct { Certstream CertstreamConfig `mapstructure:"certstream"` // List of domains to filter // Filters in the interaction with the issued certificates. // examples: // - value: > // []string{"www.example.com", "*.test.com"} Domains []string `mapstructure:"domains"` // This function is true the domains will be ignored // Default ignore is false // examples: // - ignore: true Ignore bool `mapstructure:"ignore"` }
StreamConfig is the configuration struct for stream
Click to show internal directories.
Click to hide internal directories.