config

package
v1.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	LogLevel   string
	DBFilePath string
	// core
	ReadersCount uint
	WorkersCount uint
	LoggersCount uint
	ReaderQLen   uint
	LoggerQLen   uint
	AcceptOnFail bool
	// filters
	UpdateTimeout  time.Duration
	UpdateInterval time.Duration
	// api server
	Username      string
	Password      string
	APIServerAddr string
	// nats server
	NatsEnable   bool
	NatsHost     string
	NatsPort     int
	NatsUsername string
	NatsPassword string
	// quarantine filter
	QuarantineIPCacheSize uint
	QuarantineIPEntityTTL time.Duration
	// rate limiter
	LimiterRate      uint
	LimiterBurst     uint
	LimiterCacheSize uint
	LimiterBucketTTL time.Duration
	// abuseipdb filter
	FilterAbuseIPDBEnable     bool
	FilterAbuseIPDBApiKey     string
	FilterAbuseIPDBConfidence int
	FilterAbuseIPDBReportAddr bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL