publisher

package
v5.6.12+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogPublisher

type LogPublisher interface {
	Start()
	Stop()
}

LogPublisher provides functionality to start and stop a publisher worker.

func New

func New(
	async bool,
	in chan []*input.Event,
	out SuccessLogger,
	pub publisher.Publisher,
) LogPublisher

type SuccessLogger

type SuccessLogger interface {

	// Published will be run after events have been acknowledged by the outputs.
	Published(events []*input.Event) bool
}

SuccessLogger is used to report successfully published events.

Jump to

Keyboard shortcuts

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