gouick/models/process.go
Matthieu 'JP' DERASSE b7f0d796e4
All checks were successful
continuous-integration/drone/push Build is passing
feat(go-swagger): Small refacto on launcher
2022-09-21 21:19:42 +00:00

19 lines
426 B
Go

package models
// Process represent a cmd process.
type Process struct {
Binary string
Name string
Type ProcessType
}
// ProcessType is a type used of process that can be launched with the launcher.
type ProcessType string
//nolint:exported // keeping the enum simple and readable.
const (
ProcessType_API ProcessType = "api"
ProcessType_CRON ProcessType = "cron"
ProcessType_WORKER ProcessType = "worker"
)