kafka

package
v0.0.0-...-1369677 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKafkaQueue

func NewKafkaQueue(name string) (*kafkaQueue, error)

Types

type ConnParams

type ConnParams struct {
	Addr     string // separate by "," for more than one servers case, such as kafka brokers
	NeedPub  bool   // for pub
	NeedSub  bool   // for sub
	AutoAck  bool   // for sub
	Exchange string
}

type KConsumerMsg

type KConsumerMsg interface {
	GetBody() []byte
	GetID() string
	Ack() error
}

type MsgCb

type MsgCb func(m KConsumerMsg) error

Jump to

Keyboard shortcuts

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