package
Version:
v0.0.0-...-fc76e2f
Opens a new window with list of versions in this module.
Published: Oct 11, 2015
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type ApiKey struct {
Id int64 `sql:"AUTO_INCREMENT"`
ClientName string `sql:"size:100;not null"`
ApiKey string `sql:"size:128;not null;unique_index"`
CreatedAt time.Time `sql:"DEFAULT:current_timestamp;not null"`
}
type Job struct {
Id int64 `sql:"AUTO_INCREMENT"`
Command string `sql:"size:1000;not null"`
Args string `sql:"size:1000"`
Status JobStatus `sql:"size:1;not null"`
ExitStatus int `sql:"size:4`
CreatedAt time.Time `sql:"DEFAULT:current_timestamp;not null"`
FinishedAt time.Time
}
type JobMessage struct {
JobId int64 `gorm:"primary_key" sql:"type:bigint"`
Seq int64 `gorm:"primary_key" sql:"type:bigint"`
Type JobMessageType `sql:"size:1;not null"`
Message string `sql:"size:4000"`
CreatedAt time.Time `sql:"DEFAULT:current_timestamp;not null"`
}
const (
WaitingToRun JobStatus = iota + 1
Running
Finished
CannotRun
)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.