write

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 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, retryDelay uint) *Batch

type Service

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

func NewService

func NewService(org string, bucket string, httpService http2.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) *http2.Error

func (*Service) WriteURL

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

Jump to

Keyboard shortcuts

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