producer

package
v1.1.10 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func NewHandler

func NewHandler(events <-chan kafka.Event,
	wg *sync.WaitGroup,
	msgStore store.MsgStore,
	decoder serde.Decoder,
	librdTags reporter.LibrdTags,
	librdStatsEnabled bool) *Handler

func (*Handler) Handle

func (h *Handler) Handle()

type Option

type Option func(*Producer)

func Register

func Register(cb callback.Callback) Option

type Producer

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

func New

func New(prodCfg config.Producer, mc msgCreator, encoder serde.Encoder, opts ...Option) (*Producer, error)

func (Producer) Close

func (p Producer) Close() error

func (Producer) Poll added in v1.1.0

func (p Producer) Poll(ctx context.Context)

func (Producer) ProduceWorker

func (p Producer) ProduceWorker(ctx context.Context)

func (*Producer) Register

func (p *Producer) Register(cb callback.Callback)

func (Producer) Run

func (p Producer) Run(ctx context.Context)

Jump to

Keyboard shortcuts

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