client

package
v0.0.0-...-895cc19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2021 License: MIT Imports: 18 Imported by: 0

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

type MySQLConfig

type MySQLConfig = config.MySQLClientConfig

MySQLConfig mysql client config

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL