Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
Create(cmd string) error
Send(b []byte, gzip int) (latNs int64, statusCode int, body string, err error)
SendString(query string) (latNs int64, statusCode int, body string, err error)
Close() error
Reset() error
Name() string
Connection() string // return connection to check
}
Client db connection client interface
func NewInfluxClient ¶
func NewInfluxClient(cfg InfluxConfig, dump string) (Client, error)
NewInfluxClient return new influx (db/file) client instance
func NewMySQLClient ¶
func NewMySQLClient(cfg MySQLConfig) (Client, error)
NewMySQLClient create new mysql client
type InfluxConfig ¶
type InfluxConfig = config.InfluxClientConfig
InfluxConfig influxdb client config
Click to show internal directories.
Click to hide internal directories.