summaryrefslogtreecommitdiffstats
path: root/src/go/plugin/go.d/modules/clickhouse/init.go
blob: 4d73129b39c9ad0ce074819335096e8b9d78ee7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// SPDX-License-Identifier: GPL-3.0-or-later

package clickhouse

import (
	"errors"
	"net/http"

	"github.com/netdata/netdata/go/plugins/plugin/go.d/pkg/web"
)

func (c *ClickHouse) validateConfig() error {
	if c.URL == "" {
		return errors.New("url not set")
	}
	return nil
}

func (c *ClickHouse) initHTTPClient() (*http.Client, error) {
	return web.NewHTTPClient(c.ClientConfig)
}