Documentation ¶
Index ¶
- type BatchConfiguration
- type BatchConsumeFn
- type BatchConsumer
- type BatchConsumerInterceptor
- type BatchConsumerInterceptorFunc
- type BatchConsumerStarter
- type ConsumeFn
- type Consumer
- type Interceptor
- type InterceptorFunc
- type Message
- type Messages
- type RetryConfiguration
- type SingleConsumerStarter
- type Starter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchConfiguration ¶
type BatchConsumeFn ¶
type BatchConsumeFn = kafkalib.BatchConsumeFn
type BatchConsumer ¶
func NewBatchConsumer ¶
func NewBatchConsumer(name string) BatchConsumer
func NewBatchConsumerFn ¶
func NewBatchConsumerFn(name string, fn BatchConsumeFn) BatchConsumer
type BatchConsumerInterceptor ¶
type BatchConsumerInterceptor interface {
Intercept(msg []*Message, next BatchConsumeFn) error
}
type BatchConsumerInterceptorFunc ¶
type BatchConsumerInterceptorFunc func(msg []*Message, next BatchConsumeFn) error
func (BatchConsumerInterceptorFunc) Intercept ¶
func (f BatchConsumerInterceptorFunc) Intercept(messages []*Message, next BatchConsumeFn) error
type BatchConsumerStarter ¶
type BatchConsumerStarter struct {
// contains filtered or unexported fields
}
func (*BatchConsumerStarter) Start ¶
func (s *BatchConsumerStarter) Start() error
func (*BatchConsumerStarter) Stop ¶
func (s *BatchConsumerStarter) Stop() error
type Consumer ¶
Consumer represent consumer func with name, so consumer configuration can be matched by using name
type Interceptor ¶
Interceptor represent a middleware for consume functions
type InterceptorFunc ¶
InterceptorFunc is a functional implementation of Interceptor
type RetryConfiguration ¶
type SingleConsumerStarter ¶
type SingleConsumerStarter struct {
// contains filtered or unexported fields
}
func (*SingleConsumerStarter) Start ¶
func (s *SingleConsumerStarter) Start() error
func (*SingleConsumerStarter) Stop ¶
func (s *SingleConsumerStarter) Stop() error
type Starter ¶
func NewBatchConsumerStarter ¶
func NewBatchConsumerStarter(cfg *config.Config, c BatchConsumer, interceptors []BatchConsumerInterceptor) (Starter, error)
func NewStarter ¶
Click to show internal directories.
Click to hide internal directories.