g

package
v0.0.0-...-8d57f5c Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 License: Apache-2.0 Imports: 5 Imported by: 6

Documentation

Index

Constants

View Source
const (
	OFFICIAL_VERSION = "1.1.0"
	VERSION          = "1.3.0"
)

change log: 1.0.7: code refactor for open source 1.0.8: bugfix loop init cache 1.0.9: update host table anyway 1.1.0: remove Checksum when query plugins

Variables

View Source
var (
	ConfigFile string
)

Functions

func ParseConfig

func ParseConfig(cfg string)

Types

type CMDBConfig

type CMDBConfig struct {
	Url string `json:"url"`
}

type GlobalConfig

type GlobalConfig struct {
	Debug        bool        `json:"debug"`
	Hosts        string      `json:"hosts"`
	Database     string      `json:"database"`
	CMDBGroup    string      `json:"cmdbGroup"`
	MaxConns     int         `json:"maxConns"`
	MaxIdle      int         `json:"maxIdle"`
	Listen       string      `json:"listen"`
	Interval     int64       `json:"interval"`
	Trustable    []string    `json:"trustable"`
	Http         *HttpConfig `json:"http"`
	CMDB         *CMDBConfig `json:"cmdb"`
	AgentFile    string      `json:"agent_file"`
	CMDBInterval int64       `json:"cmdb_interval"`
}

func Config

func Config() *GlobalConfig

type HttpConfig

type HttpConfig struct {
	Enabled bool   `json:"enabled"`
	Listen  string `json:"listen"`
}

Jump to

Keyboard shortcuts

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