Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddLogMessage ¶
AddLogMessage : Allows records to be added to the sqlite log table
func DeleteLogMessage ¶
func DeleteLogMessage(id int)
DeleteLogMessage : Method to remove id from log database
Types ¶
type LogEntry ¶
type LogEntry struct { ID int `json:"id"` Message string `json:"message"` Created time.Time `json:"created"` }
LogEntry : Represents database log entries
func FindAllLogMessage ¶
func FindAllLogMessage() []LogEntry
FindAllLogMessage : Function returning all logs in database
type LogMessage ¶
type LogMessage struct {
Message string `json:"message"`
}
LogMessage : Represents a log entry
Click to show internal directories.
Click to hide internal directories.