kafka

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ErrNoSrc is returned when an Aggregator is created without a kafka source
	ErrNoSrc = fmt.Errorf("No source kafka details provided")
)

Functions

This section is empty.

Types

type Aggregator

type Aggregator struct {
	Kafka *Opts

	Redis *util.RedisOpts
	// contains filtered or unexported fields
}

Aggregator is an aggregator implementation that reads from the filesystem

func NewAggregator

func NewAggregator(redisOpts *util.RedisOpts, opts *Opts) (*Aggregator, error)

NewAggregator returns a Aggregator initialized with the kafka details provided

func (*Aggregator) Start

func (a *Aggregator) Start() error

Start starts up the aggregation server

func (*Aggregator) Stop

func (a *Aggregator) Stop()

Stop shuts down the aggregation server

type Opts

type Opts struct {
	Broker string
	Topic  string
}

Opts hold configuration for the kafka publisheru

Jump to

Keyboard shortcuts

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