consumer

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

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

func New

func New(cfg config.Consumer, opts ...Option) (*Consumer, error)

func (*Consumer) Close

func (c *Consumer) Close()

func (*Consumer) Register

func (c *Consumer) Register(cb callback.Callback)

func (*Consumer) Run

func (c *Consumer) Run(ctx context.Context)

type Option

type Option func(*Consumer)

func Register

func Register(cb callback.Callback) Option

func WaitGroup

func WaitGroup(wg *sync.WaitGroup) Option

Jump to

Keyboard shortcuts

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