Documentation
¶
Index ¶
- func IsDevelopment() bool
- func Revision() string
- func Version() string
- type Config
- func (cfg *Config) APIBacklog() int
- func (cfg *Config) APIBasicAuthPassword() string
- func (cfg *Config) APIBasicAuthUsername() string
- func (cfg *Config) APIConcurrency() int
- func (cfg *Config) APIEnabled() bool
- func (cfg *Config) APIIdleTimeout() time.Duration
- func (cfg *Config) APIListenIP() string
- func (cfg *Config) APIListenPort() int
- func (cfg *Config) APIMaxRequestBodySize() int
- func (cfg *Config) APIReadBufferSize() int
- func (cfg *Config) APIReadTimeout() time.Duration
- func (cfg *Config) APITCPKeepalive() bool
- func (cfg *Config) APITCPKeepalivePeriod() time.Duration
- func (cfg *Config) APITLSCertfile() string
- func (cfg *Config) APITLSKeyfile() string
- func (cfg *Config) APIWorkers() int
- func (cfg *Config) APIWriteBufferSize() int
- func (cfg *Config) APIWriteTimeout() time.Duration
- func (cfg *Config) ConfigFileUsed() string
- func (cfg *Config) DBFile() string
- func (cfg *Config) DBMaxTempDirectorySize() int
- func (cfg *Config) DBMemoryLimit() int
- func (cfg *Config) DBTempDirectory() string
- func (cfg *Config) DBThreads() int
- func (cfg *Config) Log() *Logger
- func (cfg *Config) LogCaller() bool
- func (cfg *Config) LogJSON() bool
- func (cfg *Config) Logfile() string
- func (cfg *Config) Loglevel() zerolog.Level
- func (cfg *Config) Metrics() *Metrics
- func (cfg *Config) ScraperCommand() []string
- func (cfg *Config) ScraperEnabled() bool
- func (cfg *Config) ScraperPeriod() time.Duration
- func (cfg *Config) ScraperTimeout() time.Duration
- func (cfg *Config) SetLog(log *Logger)
- type Logger
- type LoggingBuffer
- type Metrics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDevelopment ¶
func IsDevelopment() bool
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) APIBacklog ¶
func (*Config) APIBasicAuthPassword ¶
func (*Config) APIBasicAuthUsername ¶
func (*Config) APIConcurrency ¶
func (*Config) APIEnabled ¶
func (*Config) APIIdleTimeout ¶
func (*Config) APIListenIP ¶
func (*Config) APIListenPort ¶
func (*Config) APIMaxRequestBodySize ¶
func (*Config) APIReadBufferSize ¶
func (*Config) APIReadTimeout ¶
func (*Config) APITCPKeepalive ¶
func (*Config) APITCPKeepalivePeriod ¶
func (*Config) APITLSCertfile ¶
func (*Config) APITLSKeyfile ¶
func (*Config) APIWorkers ¶
func (*Config) APIWriteBufferSize ¶
func (*Config) APIWriteTimeout ¶
func (*Config) ConfigFileUsed ¶
func (*Config) DBMaxTempDirectorySize ¶
func (*Config) DBMemoryLimit ¶
func (*Config) DBTempDirectory ¶
func (*Config) ScraperCommand ¶
func (*Config) ScraperEnabled ¶
func (*Config) ScraperPeriod ¶
func (*Config) ScraperTimeout ¶
type Logger ¶
func NewTestLogger ¶
func NewTestLogger(tl zerolog.TestingLog, level zerolog.Level) *Logger
func (*Logger) Buffer ¶
func (log *Logger) Buffer() *LoggingBuffer
type LoggingBuffer ¶
func (*LoggingBuffer) Clear ¶
func (b *LoggingBuffer) Clear()
func (*LoggingBuffer) Events ¶
func (b *LoggingBuffer) Events() []map[string]any
type Metrics ¶
type Metrics struct {
Registry *prometheus.Registry
}
func NewMetrics ¶
func NewMetrics() *Metrics
Click to show internal directories.
Click to hide internal directories.