batch

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2018 License: ISC Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Batcher

type Batcher struct {
	BufferChan chan *bytes.Buffer
	ByteChan   chan []byte

	Config
}

func Batch

func Batch(byteChan chan []byte) *Batcher

func NewBatcher

func NewBatcher(byteChan chan []byte, config Config) *Batcher

type Config

type Config struct {
	Period time.Duration
	Size   int

	Logger logging.Logger
}

func DefaultConfig

func DefaultConfig() Config

Jump to

Keyboard shortcuts

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