write

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package write provides service and its stuff

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Batch

type Batch struct {
	// contains filtered or unexported fields
}

func NewBatch

func NewBatch(data string, retryInterval uint) *Batch

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(org string, bucket string, httpService ihttp.Service, options *write.Options) *Service

func (*Service) EncodePoints

func (w *Service) EncodePoints(points ...*write.Point) (string, error)

func (*Service) HandleWrite

func (w *Service) HandleWrite(ctx context.Context, batch *Batch) error

func (*Service) WriteBatch

func (w *Service) WriteBatch(ctx context.Context, batch *Batch) error

func (*Service) WriteURL added in v1.4.0

func (w *Service) WriteURL() (string, error)

Jump to

Keyboard shortcuts

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