Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JSONBuffer ¶
type JSONBuffer struct {
// contains filtered or unexported fields
}
JSONBuffer is a byte buffer
func (*JSONBuffer) String ¶
func (j *JSONBuffer) String() string
type Log ¶
type Log struct {
// contains filtered or unexported fields
}
Log provides methods for easy logging. This should be used for each running cronjob.
func (*Log) Finish ¶
Finish finalizes the logs and write to the database. The error field should be for the command's error.
type LogEntry ¶
type LogEntry struct {
Name string `db:"name"`
ExitCode int `db:"exit_code"`
Output types.JSONText `db:"output"`
Stamp time.Time `db:"stamp"`
Duration time.Duration `db:"duration"`
}
LogEntry is one log SQL entry
Click to show internal directories.
Click to hide internal directories.