Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alert ¶
type Alert struct { Model `bson:",inline"` AlertID bson.ObjectId `json:"alert_id" bson:"alert_id"` ClientID bson.ObjectId `json:"client_id" bson:"client_id"` Timestamp time.Time `json:"timestamp" bson:"timestamp"` Value string `json:"value" bson:"value"` }
Alert struct
type AlertOption ¶
type AlertOption struct { Model `bson:",inline"` ClientID bson.ObjectId `json:"client_id" bson:"client_id"` CommandID bson.ObjectId `json:"command_id" bson:"command_id"` Alert string `json:"alert" bson:"alert"` Value string `json:"value" bson:"value"` Count int `json:"count" bson:"count"` Delay int `json:"delay" bson:"delay"` Service string `json:"service" bson:"service"` }
AlertOption struct
type Check ¶
type Check struct { Model `bson:",inline"` CommandID bson.ObjectId `json:"command_id" bson:"command_id"` ClientID bson.ObjectId `json:"client_id" bson:"client_id"` Response string `json:"response" bson:"response"` Checked bool `json:"checked" bson:"checked"` Error bool `json:"error" bson:"error"` Finished bool `json:"finished" bson:"finished"` }
Check struct
type Client ¶
type Client struct { Model `bson:",inline"` GroupIDs []bson.ObjectId `json:"group_ids" bson:"group_ids"` IP string `json:"ip" bson:"ip"` Name string `json:"name" bson:"name"` }
Client struct
type Command ¶
type Command struct { Model `bson:",inline"` Command string `json:"command" bson:"command"` Name string `json:"name" bson:"name"` Description string `json:"description" bson:"description"` Format string `json:"format" bson:"format"` }
Command struct
type Group ¶
type Group struct { Model `bson:",inline"` Commands []GroupCommand `json:"commands" bson:"commands"` Name string `json:"name" bson:"name"` }
Group struct
type GroupCommand ¶
type GroupCommand struct { ID bson.ObjectId `json:"id" bson:"id,omitempty"` CommandID bson.ObjectId `json:"command_id" bson:"command_id"` NextCheck int `json:"next_check" bson:"next_check"` StopError bool `json:"stop_error" bson:"stop_error"` }
GroupCommand struct
type Server ¶
type Server struct { Model `bson:",inline"` IP string `json:"ip" bson:"ip"` Name string `json:"name" bson:"name"` }
Server struct
type Upload ¶
type Upload struct { Model `bson:",inline" bson:"created_at"` Name string `json:"name" bson:"name"` Checksum string `json:"checksum" bson:"checksum"` Version string `json:"version" bson:"version"` Patch bool `json:"patch" bson:"patch"` PatchChecksum string `json:"patch_checksum" bson:"patch_checksum"` }
Upload struct Upload struct
Click to show internal directories.
Click to hide internal directories.