kafka

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Producer() *kafka.Writer
}

func NewClient

func NewClient(config *config.Connector) (Client, error)

type DefaultResponseHandler added in v0.0.2

type DefaultResponseHandler struct{}

func (*DefaultResponseHandler) OnError added in v0.0.2

func (*DefaultResponseHandler) OnSuccess added in v0.0.2

type ResponseHandler

type ResponseHandler interface {
	OnSuccess(ctx *ResponseHandlerContext)
	OnError(ctx *ResponseHandlerContext)
}

type ResponseHandlerContext

type ResponseHandlerContext struct {
	Message *kafka.Message
	Err     error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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