feat: 配置读取

This commit is contained in:
2021-12-14 13:53:22 +08:00
parent 4dfe310592
commit 28fdd5a348
8 changed files with 377 additions and 23 deletions
+13
View File
@@ -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"
)
+6
View File
@@ -0,0 +1,6 @@
package consts
const (
EtcConnError = "etcConnectError"
ErrorReason = "reason"
)