mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-27 02:52:14 +01:00
b5a99eba7f
* refactor(runners): extract jobs to separate entity
16 lines
347 B
Go
16 lines
347 B
Go
package db
|
|
|
|
type RunnerState string
|
|
|
|
const (
|
|
RunnerOffline RunnerState = "offline"
|
|
RunnerActive RunnerState = "active"
|
|
)
|
|
|
|
type Runner struct {
|
|
ID int `db:"id" json:"-"`
|
|
Token string `db:"token" json:"token"`
|
|
ProjectID *int `db:"project_id" json:"project_id"`
|
|
State RunnerState `db:"state" json:"state"`
|
|
}
|