handler

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("handler not found")

Functions

This section is empty.

Types

type Handler

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

func New

func New(handlerFunc interface{}) Handler

func (Handler) Handle

func (m Handler) Handle(ctx context.Context, msg []byte) error

type List

type List map[string][]Handler

func (List) AddHandler

func (l List) AddHandler(messageType string, handler Handler)

func (List) Handle

func (l List) Handle(ctx context.Context, message *sarama.ConsumerMessage) error

type Unmarshaller

type Unmarshaller interface {
	UnmarshallKFK([]byte) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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