2022-11-02 07:19:14 +00:00
|
|
|
package constant
|
|
|
|
|
|
|
|
type DBContext string
|
|
|
|
|
|
|
|
const (
|
|
|
|
DB DBContext = "db"
|
2023-11-02 06:35:58 +00:00
|
|
|
|
|
|
|
SystemRestart = "systemRestart"
|
2023-11-23 03:00:08 +00:00
|
|
|
|
|
|
|
TypeWebsite = "website"
|
|
|
|
TypePhp = "php"
|
|
|
|
TypeSSL = "ssl"
|
|
|
|
TypeSystem = "system"
|
2022-11-02 07:19:14 +00:00
|
|
|
)
|
2024-06-06 09:37:38 +00:00
|
|
|
|
|
|
|
const (
|
|
|
|
TimeOut5s = 5
|
|
|
|
TimeOut20s = 20
|
|
|
|
TimeOut5m = 300
|
2024-06-28 06:04:08 +00:00
|
|
|
|
|
|
|
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"
|
2024-06-06 09:37:38 +00:00
|
|
|
)
|