feat(go-swagger): Small refacto on launcher
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
// APITypeName is a type used as an enum for possible API Type Name.
|
||||
type APITypeName string
|
||||
|
||||
//nolint:exported // keeping the enum simple and redeable.
|
||||
//nolint:exported // keeping the enum simple and readable.
|
||||
const (
|
||||
APITypeName_GIN_GONIC APITypeName = "Gin Gonic"
|
||||
APITypeName_GO_SWAGGER APITypeName = "Go Swagger"
|
||||
|
@@ -3,7 +3,7 @@ package models
|
||||
// DependencyName is a type used as an enum for possible Dependency Name.
|
||||
type DependencyName string
|
||||
|
||||
//nolint:exported // keeping the enum simple and redeable.
|
||||
//nolint:exported // keeping the enum simple and readable.
|
||||
const (
|
||||
DependencyName_GIT DependencyName = "Git"
|
||||
DependencyName_GOLANG DependencyName = "Golang"
|
||||
|
18
models/process.go
Normal file
18
models/process.go
Normal file
@@ -0,0 +1,18 @@
|
||||
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"
|
||||
)
|
Reference in New Issue
Block a user