mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-02 23:40:24 +08:00
39 lines
940 B
Go
39 lines
940 B
Go
package consts
|
|
|
|
import "time"
|
|
|
|
const (
|
|
AdminId = 1
|
|
|
|
MachineConnExpireTime = 60 * time.Minute
|
|
DbConnExpireTime = 120 * time.Minute
|
|
RedisConnExpireTime = 30 * time.Minute
|
|
MongoConnExpireTime = 30 * time.Minute
|
|
EsConnExpireTime = 30 * time.Minute
|
|
|
|
/**** 开发测试使用 ****/
|
|
// MachineConnExpireTime = 4 * time.Minute
|
|
// DbConnExpireTime = 2 * time.Minute
|
|
// RedisConnExpireTime = 2 * time.Minute
|
|
// MongoConnExpireTime = 2 * time.Minute
|
|
|
|
ResourceTypeMachine int8 = 1
|
|
ResourceTypeDbInstance int8 = 2
|
|
ResourceTypeRedis int8 = 3
|
|
ResourceTypeMongo int8 = 4
|
|
ResourceTypeAuthCert int8 = 5
|
|
ResourceTypeEsInstance int8 = 6
|
|
|
|
// imsg起始编号
|
|
ImsgNumSys = 10000
|
|
ImsgNumAuth = 20000
|
|
ImsgNumTag = 30000
|
|
ImsgNumFlow = 40000
|
|
ImsgNumMachine = 50000
|
|
ImsgNumDb = 60000
|
|
ImsgNumRedis = 70000
|
|
ImsgNumMongo = 80000
|
|
ImsgNumMsg = 90000
|
|
ImsgNumEs = 100000
|
|
)
|