Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthConfig ¶
type AuthConfig struct {
JWTSecret string `koanf:"jwt.secret"`
EnableAuth bool `koanf:"enable.auth"`
RequiredRole string `koanf:"required.role"`
}
AuthConfig holds authentication configuration
type Config ¶
type Config struct {
Server ServerConfig `koanf:"server"`
OpenSearch OpenSearchConfig `koanf:"opensearch"`
Prometheus PrometheusConfig `koanf:"prometheus"`
Auth AuthConfig `koanf:"auth"`
Logging LoggingConfig `koanf:"logging"`
LogLevel string `koanf:"loglevel"`
}
Config holds all configuration for the logging service
type LoggingConfig ¶
type LoggingConfig struct {
MaxLogLimit int `koanf:"max.log.limit"`
DefaultLogLimit int `koanf:"default.log.limit"`
DefaultBuildLogLimit int `koanf:"default.build.log.limit"`
MaxLogLinesPerFile int `koanf:"max.log.lines.per.file"`
}
LoggingConfig holds application logging configuration
type OpenSearchConfig ¶
type OpenSearchConfig struct {
Address string `koanf:"address"`
Username string `koanf:"username"`
Password string `koanf:"password"`
Timeout time.Duration `koanf:"timeout"`
MaxRetries int `koanf:"max.retries"`
IndexPrefix string `koanf:"index.prefix"`
IndexPattern string `koanf:"index.pattern"`
LegacyPattern string `koanf:"legacy.pattern"`
}
OpenSearchConfig holds OpenSearch connection configuration
type PrometheusConfig ¶ added in v0.4.0
type PrometheusConfig struct {
Address string `koanf:"address"`
Timeout time.Duration `koanf:"timeout"`
}
PrometheusConfig holds Prometheus connection configuration
Click to show internal directories.
Click to hide internal directories.