From ef7aa65a3e12208205b031461b7e2eebbacb248d Mon Sep 17 00:00:00 2001 From: crusader Date: Fri, 11 May 2018 19:36:30 +0900 Subject: [PATCH] ing --- config/external/influxdb.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/config/external/influxdb.go b/config/external/influxdb.go index cdf657d..9a45e3a 100644 --- a/config/external/influxdb.go +++ b/config/external/influxdb.go @@ -3,16 +3,17 @@ package external import "time" type InfluxDB struct { - HTTPConfigs map[string]*InfluxDBHTTPConfig `json:"httpConfigs" yaml:"httpConfigs" toml:"httpConfigs"` + ClientConfigs map[string]*InfluxDBClientConfig `json:"clientConfigs" yaml:"clientConfigs" toml:"clientConfigs"` BatchPointsConfigs map[string]*InfluxDBBatchPointsConfig `json:"batchPointsConfigs" yaml:"batchPointsConfigs" toml:"batchPointsConfigs"` } -type InfluxDBHTTPConfig struct { - Address string `json:"address" yaml:"address" toml:"address"` - Username string `json:"username" yaml:"username" toml:"username"` - Password string `json:"password" yaml:"password" toml:"password"` - UserAgent string `json:"userAgent" yaml:"userAgent" toml:"userAgent"` - Timeout time.Duration `json:"timeout" yaml:"timeout" toml:"timeout"` +type InfluxDBClientConfig struct { + ClientType string `json:"clientType" yaml:"clientType" toml:"clientType"` + Address string `json:"address" yaml:"address" toml:"address"` + Username string `json:"username" yaml:"username" toml:"username"` + Password string `json:"password" yaml:"password" toml:"password"` + UserAgent string `json:"userAgent" yaml:"userAgent" toml:"userAgent"` + Timeout time.Duration `json:"timeout" yaml:"timeout" toml:"timeout"` } type InfluxDBBatchPointsConfig struct {