2023-08-27 18:02:51 +02:00
|
|
|
package db
|
|
|
|
|
|
|
|
type RunnerState string
|
|
|
|
|
2023-09-10 23:18:25 +02:00
|
|
|
//const (
|
|
|
|
// RunnerOffline RunnerState = "offline"
|
|
|
|
// RunnerActive RunnerState = "active"
|
|
|
|
//)
|
2023-08-27 18:02:51 +02:00
|
|
|
|
|
|
|
type Runner struct {
|
2023-09-10 23:18:25 +02:00
|
|
|
ID int `db:"id" json:"-"`
|
|
|
|
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"`
|
2023-08-27 18:02:51 +02:00
|
|
|
}
|