feat: 配置读取
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package consts
|
||||
|
||||
const (
|
||||
DsnPre = "dsn"
|
||||
Local = "local"
|
||||
Pro = "pro"
|
||||
Pre = "pre"
|
||||
Env = "env"
|
||||
Configs = "config"
|
||||
Etcd = "etcd"
|
||||
EtcdEnd = "endpoints"
|
||||
EtcdEndDefault = "127.0.0.1:2379"
|
||||
)
|
||||
@@ -0,0 +1,6 @@
|
||||
package consts
|
||||
|
||||
const (
|
||||
EtcConnError = "etcConnectError"
|
||||
ErrorReason = "reason"
|
||||
)
|
||||
Reference in New Issue
Block a user