publisher

package
v6.0.0-beta1+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2017 License: Apache-2.0 Imports: 1 Imported by: 2,514

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Batch

type Batch interface {
	Events() []Event

	// signals
	ACK()
	Drop()
	Retry()
	RetryEvents(events []Event)
	Cancelled()
	CancelledEvents(events []Event)
}

Batch is used to pass a batch of events to the outputs and asynchronously listening for signals from these outpts. After a batch is processed (completed or errors), one of the signal methods must be called.

type Event

type Event struct {
	Content beat.Event
	Flags   EventFlags
}

Event is used by the publisher pipeline and broker to pass additional meta-data to the consumers/outputs.

func (*Event) Guaranteed

func (e *Event) Guaranteed() bool

Guaranteed checks if the event must not be dropped by the output or the publisher pipeline.

type EventFlags

type EventFlags uint8

EventFlags provides additional flags/option types for used with the outputs.

const (
	// GuaranteedSend requires an output to not drop the event on failure, but
	// retry until ACK.
	GuaranteedSend EventFlags = 0x01
)

Directories

Path Synopsis
bc
brokertest
Package brokertest provides common functionality tests all broker implementations must pass.
Package brokertest provides common functionality tests all broker implementations must pass.
membroker
Package membroker provides an in-memory publisher.Broker implementation for use with the publisher pipeline.
Package membroker provides an in-memory publisher.Broker implementation for use with the publisher pipeline.
Package pipeline combines all publisher functionality (processors, broker, outputs) to create instances of complete publisher pipelines, beats can connect to publish events to.
Package pipeline combines all publisher functionality (processors, broker, outputs) to create instances of complete publisher pipelines, beats can connect to publish events to.

Jump to

Keyboard shortcuts

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