write

package
v0.0.0-...-2b2bbb9 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: MIT Imports: 9 Imported by: 2

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
	Precision       string
	Consistency     string
	TLSSkipVerify   bool

	Gzip bool
}

Jump to

Keyboard shortcuts

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