1Panel/agent/constant/common.go
zhengkunwang223 0e5d6e825e
Some checks failed
sync2gitee / repo-sync (push) Failing after -7m12s
feat: 创建网站、应用任务化
2024-07-29 18:09:57 +08:00

30 lines
705 B
Go

package constant
type DBContext string
const (
DB DBContext = "db"
SystemRestart = "systemRestart"
TypeWebsite = "website"
TypePhp = "php"
TypeSSL = "ssl"
TypeSystem = "system"
TypeTask = "task"
TypeImagePull = "image-pull"
TypeImagePush = "image-push"
TypeImageBuild = "image-build"
TypeComposeCreate = "compose-create"
)
const (
TimeOut5s = 5
TimeOut20s = 20
TimeOut5m = 300
DateLayout = "2006-01-02" // or use time.DateOnly while go version >= 1.20
DefaultDate = "1970-01-01"
DateTimeLayout = "2006-01-02 15:04:05" // or use time.DateTime while go version >= 1.20
DateTimeSlimLayout = "20060102150405"
)