Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Agents = NewSafeAgents()
Functions ¶
func DeleteStaleAgents ¶
func DeleteStaleAgents()
Types ¶
type SafeAgents ¶
type SafeAgents struct { sync.RWMutex M map[string]*model.AgentUpdateInfo }
func NewSafeAgents ¶
func NewSafeAgents() *SafeAgents
func (*SafeAgents) Delete ¶
func (this *SafeAgents) Delete(hostname string)
func (*SafeAgents) Get ¶
func (this *SafeAgents) Get(hostname string) (*model.AgentUpdateInfo, bool)
func (*SafeAgents) Keys ¶
func (this *SafeAgents) Keys() []string
func (*SafeAgents) Put ¶
func (this *SafeAgents) Put(req *model.AgentReportRequest, updateTime int64)
Click to show internal directories.
Click to hide internal directories.