batch

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CHANNEL_SIZE = 512
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Batcher

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

func NewBatcher

func NewBatcher(
	flushInterval time.Duration,
	maxSizeInBytes int,
	input *diodes.OneToOne,
	writer func([]*rpc.Point),
	done chan struct{},
	droppedMetricFunc func(int),
) *Batcher

func (*Batcher) Start

func (b *Batcher) Start()

Jump to

Keyboard shortcuts

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