Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoRecord no record found in database error ErrNoRecord = errors.New("models: no matching record found") // ErrInvalidCredentials invalid username/password error ErrInvalidCredentials = errors.New("models: invalid credentials") // ErrDuplicateEmail duplicate email error ErrDuplicateEmail = errors.New("models: duplicate email") // ErrInactiveAccount inactive account error ErrInactiveAccount = errors.New("models: Inactive Account") )
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { ID int EventType string HostServiceID int HostID int ServiceName string HostName string Message string CreatedAt time.Time UpdatedAt time.Time }
Event model
type Host ¶
type Host struct { ID int HostName string CanonicalName string URL string IP string IPV6 string Location string OS string Active int CreatedAt time.Time UpdatedAt time.Time HostServices []HostService }
Host is the model for hosts
type HostService ¶
type HostService struct { ID int HostID int ServiceID int Active int ScheduleNumber int ScheduleUnit string Status string LastCheck time.Time LastMessage string CreatedAt time.Time UpdatedAt time.Time Service Services HostName string }
HostService is the model for host services
type Preference ¶
type Preference struct { ID int Name string Preference []byte CreatedAt time.Time UpdatedAt time.Time }
Preference model
type Schedule ¶
type Schedule struct { ID int EntryID cron.EntryID Entry cron.Entry Host string Service string LastRunFromHS time.Time HostServiceID int ScheduleText string }
Schedule model
Click to show internal directories.
Click to hide internal directories.