新增测点配置
This commit is contained in:
@@ -14,7 +14,8 @@ const (
|
||||
)
|
||||
|
||||
type Config struct {
|
||||
IsDebug bool `mapstructure:"is_debug" json:"is_debug" yaml:"is_debug"`
|
||||
Db DbConf `mapstructure:"db" json:"db" yaml:"db"`
|
||||
Service ServiceConf `mapstructure:"service" json:"service" yaml:"service"`
|
||||
IsDebug bool `mapstructure:"is_debug" json:"is_debug" yaml:"is_debug"`
|
||||
Db DbConf `mapstructure:"db" json:"db" yaml:"db"`
|
||||
Service ServiceConf `mapstructure:"service" json:"service" yaml:"service"`
|
||||
InFluxDb InFluxDbConf `mapstructure:"influxdb" json:"influxdb" yaml:"influxdb"`
|
||||
}
|
||||
|
||||
6
config/influxdb.go
Normal file
6
config/influxdb.go
Normal file
@@ -0,0 +1,6 @@
|
||||
package config
|
||||
|
||||
type InFluxDbConf struct {
|
||||
Host string `mapstructure:"host" json:"host" yaml:"host"`
|
||||
Token string `mapstructure:"token" json:"token" yaml:"token"`
|
||||
}
|
||||
Reference in New Issue
Block a user