Documentation ¶
Index ¶
- type MySQL
- func (m *MySQL) AddCheck(check gogios.Check, output string) error
- func (m *MySQL) AddUser(user gogios.User) error
- func (m *MySQL) DeleteCheck(check gogios.Check, field string) error
- func (m *MySQL) DeleteUser(user gogios.User) error
- func (m *MySQL) Description() string
- func (m *MySQL) GetAllChecks() ([]gogios.Check, error)
- func (m *MySQL) GetCheck(searchField, searchType string) (gogios.Check, error)
- func (m *MySQL) GetCheckHistory(check gogios.Check, amount int) ([]gogios.CheckHistory, error)
- func (m *MySQL) GetUser(user string) (*gogios.User, error)
- func (m *MySQL) Init() error
- func (m *MySQL) SampleConfig() string
- func (m *MySQL) SubConfig() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MySQL ¶
MySQL requirements
func (*MySQL) AddCheck ¶
AddCheck makes sure an entry exists for the check and then adds to its history
func (*MySQL) DeleteCheck ¶
DeleteCheck will remove a row from the check table based on the ID
func (*MySQL) DeleteUser ¶
DeleteUser sets the DeletedAt value of the user and blanks their password
func (*MySQL) Description ¶
Description returns a brief explanation of the database
func (*MySQL) GetAllChecks ¶
GetAllChecks returns all the rows in the check table
func (*MySQL) GetCheck ¶
GetCheck returns a single row. Searches using field (title or id) and returns the last record that matches
func (*MySQL) GetCheckHistory ¶
GetCheckHistory returns $amount of rows of history for a check
func (*MySQL) SampleConfig ¶
SampleConfig returns the default config for MySQL
Click to show internal directories.
Click to hide internal directories.