kafka

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component added in v0.2.0

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

Component implementation of a kafka consumer.

func New

func New(name string, p async.ProcessorFunc, clientID string, brokers []string, topics []string, ct string) (*Component, error)

New returns a new component.

func (*Component) Run added in v0.2.0

func (c *Component) Run(ctx context.Context) error

Run starts the async processing.

func (*Component) Shutdown added in v0.2.0

func (c *Component) Shutdown(ctx context.Context) error

Shutdown the component.

Jump to

Keyboard shortcuts

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