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