config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig()

Types

type Config_t

type Config_t struct {
	Alarm struct {
		ServerNickName string
		Telegram       struct {
			Enabled         bool
			Token           string
			ChatID          string
			MessageThreadID int
		}
		Slack struct {
			Enabled    bool
			WebHookURL string
		}
	}
	API struct {
		Host string
		Port int
	}
	Disk struct {
		FileSystems   []string
		PartUseLimit  int
		CheckInterval int
		Unit          string
	}
	Cpu struct {
		LoadLimit     float32
		CheckInterval int
	}
	Memory struct {
		UseLimit      int
		CheckInterval int
		Unit          string
	}
}
var Config Config_t

Jump to

Keyboard shortcuts

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