Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultGroupPostfix = "group" DefaultGroupPrefix = "group" )
Variables ¶
This section is empty.
Functions ¶
func DefaultConfig ¶
Types ¶
type AsyncSender ¶
type AsyncSender struct {
// contains filtered or unexported fields
}
func NewAsyncSender ¶
func NewAsyncSender(addr []string, conf *sarama.Config, o ...AsyncSenderOption) (*AsyncSender, error)
func (*AsyncSender) Close ¶
func (s *AsyncSender) Close() error
type AsyncSenderOption ¶
type AsyncSenderOption func(*AsyncSender)
func AsyncSenderErrorHook ¶
func AsyncSenderErrorHook(f ...func(err *sarama.ProducerError)) AsyncSenderOption
func AsyncSenderSuccessHook ¶
func AsyncSenderSuccessHook(f ...func(m *sarama.ProducerMessage)) AsyncSenderOption
type Hook ¶
type Hook func(sarama.ConsumerGroupSession)
type Receiver ¶
type Receiver struct {
// contains filtered or unexported fields
}
func NewReceiver ¶
func NewReceiver(addr []string, conf *sarama.Config, opts ...ReceiverOption) *Receiver
type ReceiverOption ¶
type ReceiverOption func(*Receiver)
func ReceiverErrorHandler ¶
func ReceiverErrorHandler(h messaging.ErrorHandler) ReceiverOption
func WithGroupPostfix ¶
func WithGroupPostfix(prefix string) ReceiverOption
func WithGroupPrefix ¶
func WithGroupPrefix(prefix string) ReceiverOption
func WithGroupingByChannel ¶
func WithGroupingByChannel() ReceiverOption
func WithReBalanceHook ¶
func WithReBalanceHook(hook ...Hook) ReceiverOption
Click to show internal directories.
Click to hide internal directories.