Versions in this module Expand all Collapse all v0 v0.2.1 Aug 15, 2017 v0.2.0 Jun 18, 2017 Changes in this version + var Agents = NewSafeAgents() + var ExpressionCache = &SafeExpressionCache + var GroupPlugins = &SafeGroupPlugins + var GroupTemplates = &SafeGroupTemplates + var HostGroupsMap = &SafeHostGroupsMap + var HostMap = &SafeHostMap + var HostTemplateIds = &SafeHostTemplateIds + var MonitoredHosts = &SafeMonitoredHosts + var Strategies = &SafeStrategies + var TemplateCache = &SafeTemplateCache + func DeleteStaleAgents() + func GetBuiltinMetrics(hostname string) ([]*model.BuiltinMetric, error) + func GetPlugins(hostname string) []string + func Init() + func LoopInit() + func ParentIds(allTpls map[int]*model.Template, tid int) (ret []int) + type SafeAgents struct + M map[string]*model.AgentUpdateInfo + func NewSafeAgents() *SafeAgents + func (this *SafeAgents) Delete(hostname string) + func (this *SafeAgents) Get(hostname string) (*model.AgentUpdateInfo, bool) + func (this *SafeAgents) Keys() []string + func (this *SafeAgents) Put(req *model.AgentReportRequest) + type SafeExpressionCache struct + L []*model.Expression + func (this *SafeExpressionCache) Get() []*model.Expression + func (this *SafeExpressionCache) Init() + type SafeGroupPlugins struct + M map[int][]string + func (this *SafeGroupPlugins) GetPlugins(gid int) ([]string, bool) + func (this *SafeGroupPlugins) Init() + type SafeGroupTemplates struct + M map[int][]int + func (this *SafeGroupTemplates) GetTemplateIds(gid int) ([]int, bool) + func (this *SafeGroupTemplates) Init() + type SafeHostGroupsMap struct + M map[int][]int + func (this *SafeHostGroupsMap) GetGroupIds(hid int) ([]int, bool) + func (this *SafeHostGroupsMap) Init() + type SafeHostMap struct + M map[string]int + func (this *SafeHostMap) GetID(hostname string) (int, bool) + func (this *SafeHostMap) Init() + type SafeHostTemplateIds struct + M map[int][]int + func (this *SafeHostTemplateIds) GetMap() map[int][]int + func (this *SafeHostTemplateIds) Init() + type SafeMonitoredHosts struct + M map[int]*model.Host + func (this *SafeMonitoredHosts) Get() map[int]*model.Host + func (this *SafeMonitoredHosts) Init() + type SafeStrategies struct + M map[int]*model.Strategy + func (this *SafeStrategies) GetMap() map[int]*model.Strategy + func (this *SafeStrategies) Init(tpls map[int]*model.Template) + type SafeTemplateCache struct + M map[int]*model.Template + func (this *SafeTemplateCache) GetMap() map[int]*model.Template + func (this *SafeTemplateCache) Init()