config

package
v1.16.2 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidTimeout error.
	ErrInvalidTimeout = errors.New("config: invalid timeout")

	// ErrInvalidPercent error.
	ErrInvalidPercent = errors.New("config: invalid percent")

	// ErrInvalidValue error.
	ErrInvalidValue = errors.New("config: invalid value")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	DiskIgnored        []string
	RedisURL           string
	RedisKeyPrefix     string
	DataLogEnabled     bool
	DataLogTimeout     int
	AlarmEnabled       bool
	AlarmCPUPercent    float64
	AlarmMemoryPercent float64
	AlarmDiskPercent   float64
	AlarmLoadValue     float64
	AlarmWebhookMethod string
	AlarmWebhookURL    string
	AlarmWebhookHeader map[string]string
	AlarmWebhookBody   string
	AlarmFilterEnabled bool
	AlarmFilterWait    int
	AlarmFilterSleep   int
	LogTailEnabled     bool
	LogTailFiles       []string
	LogTailLines       int
	LogTailBufferSize  int
	LogTailLimit       int
	LogTailTimeout     int
}

Config type.

func Load

func Load() (*Config, error)

Load function.

Jump to

Keyboard shortcuts

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