示例#1
0
func (m *MockInfluxDBService) NewNamedClient(name string) (influxdb.Client, error) {
	return influxdb.NewHTTPClient(influxdb.Config{
		URLs: []string{m.ts.URL},
	})
}
示例#2
0
func (m *MockInfluxDBService) NewDefaultClient() (influxdb.Client, error) {
	return influxdb.NewHTTPClient(influxdb.HTTPConfig{
		URL: m.ts.URL,
	})
}