sunty
2024-05-27 6597287fc412ce914aba41fe571ed05817cf371c
config/config.go
@@ -15,10 +15,12 @@
}
type database struct {
   Driver string `mapstructure: "driver"`
   Host   string `mapstructure: "host"`
   Port   string `mapstructure: "port"`
   Name   string `mapstructure: "name"`
   Driver   string `mapstructure: "driver"`
   Host     string `mapstructure: "host"`
   Port     string `mapstructure: "port"`
   Name     string `mapstructure: "name"`
   Username string `mapstructure: "username"`
   Password string `mapstructure: "password"`
}
type elastic struct {
@@ -39,8 +41,11 @@
}
type api struct {
   Host string `mapstructure: "host"`
   Port string `mapstructure: "port"`
   Host      string `mapstructure: "host"`
   Port      string `mapstructure: "port"`
   CsTimes   int    `mapstructure:"csTimes"`
   CsHours   int    `mapstructure:"csHours"`
   AInterval int    `mapstructure:"aInterval"`
}
var LogConf = &LogConfig{}