Documentation ¶
Index ¶
Constants ¶
View Source
const (
VERSION = "0.2.0"
)
Variables ¶
View Source
var (
DetectedItemMap = &DetectedItemSafeMap{M: make(map[string][]*dataobj.DetectedItem)}
)
Functions ¶
Types ¶
type AlarmConfig ¶
type AlarmConfig struct { Enable bool `yaml:"enable"` Batch int `yaml:"batch"` Replicas int `yaml:"replicas"` ConnTimeout int `yaml:"connTimeout"` CallTimeout int `yaml:"callTimeout"` MaxConns int `yaml:"maxConns"` MaxIdle int `yaml:"maxIdle"` SleepTime int `yaml:"sleepTime"` Cluster map[string]string `yaml:"cluster"` }
type DetectedItemSafeMap ¶
type DetectedItemSafeMap struct { sync.RWMutex M map[string][]*dataobj.DetectedItem }
func (*DetectedItemSafeMap) Get ¶
func (this *DetectedItemSafeMap) Get(key string) ([]*dataobj.DetectedItem, bool)
func (*DetectedItemSafeMap) GetAll ¶
func (this *DetectedItemSafeMap) GetAll() map[string][]*dataobj.DetectedItem
func (*DetectedItemSafeMap) Set ¶
func (this *DetectedItemSafeMap) Set(detectedItemMap map[string][]*dataobj.DetectedItem)
type FalconConfig ¶
type GlobalConfig ¶
type GlobalConfig struct { Debug bool `yaml:"debug"` Admins []string `yaml:"admins"` Salt string `yaml:"salt"` Register bool `yaml:"register"` ShowDurationMin int `yaml:"showDurationMin"` //查看最近几分钟内的报警历史和绘图,默认为30分钟 KeepDurationHour int `yaml:"keepDurationHour"` //保留历史数据时间长度,默认为12小时 Http *HttpConfig `yaml:"http"` Rpc *RpcConfig `yaml:"rpc"` Ldap *LdapConfig `yaml:"ldap"` Mysql *MysqlConfig `yaml:"mysql"` Alarm *AlarmConfig `yaml:"alarm"` Falcon *FalconConfig `yaml:"falcon"` Statsd *StatsdConfig `yaml:"statsd"` Prom *PromConfig `yaml:"prom"` IDC []string `yaml:"idc"` }
var (
Config *GlobalConfig
)
type HttpConfig ¶
type InternalDnsConfig ¶
type LdapConfig ¶
type MysqlConfig ¶
type PromConfig ¶
type StatsdConfig ¶
Click to show internal directories.
Click to hide internal directories.