Semaphore/db/Runner.go

20 lines
580 B
Go
Raw Permalink Normal View History

package db
type RunnerState string
//const (
// RunnerOffline RunnerState = "offline"
// RunnerActive RunnerState = "active"
//)
type Runner struct {
2024-09-28 16:05:26 +02:00
ID int `db:"id" json:"id"`
Token string `db:"token" json:"-"`
ProjectID *int `db:"project_id" json:"project_id"`
//State RunnerState `db:"state" json:"state"`
Webhook string `db:"webhook" json:"webhook"`
MaxParallelTasks int `db:"max_parallel_tasks" json:"max_parallel_tasks"`
2024-09-26 12:54:03 +02:00
Active bool `db:"active" json:"active"`
Name string `db:"name" json:"name"`
}