kafka

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2018 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service implementation of a kafka consumer

func New

func New(mp async.MessageProcessor, clientID string, brokers []string, topics []string) (*Service, error)

New returns a new client

func (*Service) Run

func (s *Service) Run(ctx context.Context) error

Run starts the async processing

func (*Service) Shutdown

func (s *Service) Shutdown(ctx context.Context) error

Shutdown the service

Jump to

Keyboard shortcuts

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