feat: 初步集成 zabbix agent

This commit is contained in:
2024-08-22 16:48:04 +08:00
parent e148d8aeda
commit dc53b3aaf8
12 changed files with 289 additions and 19 deletions

View File

@ -8,8 +8,9 @@ import (
)
type config struct {
Server serverConfig `mapstructure:"server"`
App appConfig `mapstructure:"app"`
Server serverConfig `mapstructure:"server"`
App appConfig `mapstructure:"app"`
Integrations integrationConfig `mapstructure:"integrations"`
}
type serverConfig struct {
@ -21,6 +22,10 @@ type appConfig struct {
URL string `mapstructure:"url"`
}
type integrationConfig struct {
ZabbixAgent IntegrationConfig `mapstructure:"zabbix_agent"`
}
var Conf config
func LoadConfig() error {