Documentation ¶
Index ¶
Constants ¶
View Source
const ( SentinelSchema = "sentinel" AgentTable = "agents" UsersTable = "users" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AgentDatabase ¶
func (AgentDatabase) GetAgentIDs ¶
func (dbi AgentDatabase) GetAgentIDs() []int
func (AgentDatabase) HostCount ¶
func (dbi AgentDatabase) HostCount() int
HostCount counts the number of registered hosts in the AgentTable by agentID
func (AgentDatabase) Open ¶
func (dbi AgentDatabase) Open() *sql.DB
Click to show internal directories.
Click to hide internal directories.