kafka

package
v0.0.0-...-3b037d6 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeEvent

func DecodeEvent(ctx context.Context, msg []byte) (request interface{}, err error)

func EncodeEvent

func EncodeEvent(ctx context.Context, request interface{}) (msg []byte, err error)

Types

type Logger

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

func NewLogger

func NewLogger(addr []string, topic string, conf *sarama.Config) (*Logger, error)

func (*Logger) Append

func (l *Logger) Append(ctx context.Context, event pm.Event) error

func (*Logger) Close

func (l *Logger) Close() error

Jump to

Keyboard shortcuts

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