batcher

package
v0.0.0-...-1c2aa41 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2017 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Batcher

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

func New

func New(db *database.Database, targets map[string]*client.Client, maxEventsPerBatch int) *Batcher

func (*Batcher) CreateBatchesWithActions

func (b *Batcher) CreateBatchesWithActions(actionsForTarget map[string][]action.Action, tx *sqlx.Tx) ([]*database.Batch, error)

func (*Batcher) Watch

func (b *Batcher) Watch(sleepTime time.Duration)

Every sleepTime interval, create a batch with unbatched events

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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