write

package
v0.0.0-...-e717816 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultDatabase        = "stress"
	DefaultRetentionPolicy = "autogen"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Create(string) error
	Send([]byte) (latNs int64, statusCode int, body string, err error)

	Close() error
}

func NewClient

func NewClient(cfg ClientConfig) Client

func NewFileClient

func NewFileClient(path string, cfg ClientConfig) (Client, error)

type ClientConfig

type ClientConfig struct {
	BaseURL string

	Database        string
	RetentionPolicy string
	User            string
	Pass            string
	Token           string
	Precision       string
	Consistency     string
	TLSSkipVerify   bool
	ReadTimeout     time.Duration
	WriteTimeout    time.Duration

	Gzip bool
}

Jump to

Keyboard shortcuts

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