data

package
v0.0.0-...-9440fe0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SentinelSchema = "sentinel"
	AgentTable     = "agents"
	UsersTable     = "users"
)

Variables

This section is empty.

Functions

func Test

func Test()

Types

type AgentDatabase

type AgentDatabase struct {
	Host     string
	Port     int
	User     string
	Password string
	DBName   string
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL