feat(go-swagger): Small refacto on launcher
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Matthieu 'JP' DERASSE
2022-09-21 21:18:12 +00:00
parent cda86019bb
commit b7f0d796e4
6 changed files with 113 additions and 33 deletions

View File

@@ -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"

View File

@@ -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
View 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"
)