outest

package
v6.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Batch

type Batch struct {
	Signals  []BatchSignal
	OnSignal func(sig BatchSignal)
	// contains filtered or unexported fields
}

func NewBatch

func NewBatch(in ...beat.Event) *Batch

func (*Batch) ACK

func (b *Batch) ACK()

func (*Batch) Cancelled

func (b *Batch) Cancelled()

func (*Batch) CancelledEvents

func (b *Batch) CancelledEvents(events []publisher.Event)

func (*Batch) Drop

func (b *Batch) Drop()

func (*Batch) Events

func (b *Batch) Events() []publisher.Event

func (*Batch) Retry

func (b *Batch) Retry()

func (*Batch) RetryEvents

func (b *Batch) RetryEvents(events []publisher.Event)

type BatchSignal

type BatchSignal struct {
	Tag    BatchSignalTag
	Events []publisher.Event
}

type BatchSignalTag

type BatchSignalTag uint8
const (
	BatchACK BatchSignalTag = iota
	BatchDrop
	BatchRetry
	BatchRetryEvents
	BatchCancelled
	BatchCancelledEvents
)

Jump to

Keyboard shortcuts

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