Documentation
¶
Index ¶
- Variables
- type BulkHandler
- func (h *BulkHandler[T]) Close()
- func (h *BulkHandler[T]) ReadMsg(ctx context.Context, r *kafka.Reader) error
- func (h *BulkHandler[T]) SetBatchSize(batchSize int) *BulkHandler[T]
- func (h *BulkHandler[T]) SetDecodeFn(fn func([]byte) (T, error)) *BulkHandler[T]
- func (h *BulkHandler[T]) SetInterval(interval time.Duration) *BulkHandler[T]
- type Consumer
- type Handler
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrReaderClosed = errors.New("kafka reader closed")
)
Functions ¶
This section is empty.
Types ¶
type BulkHandler ¶
type BulkHandler[T any] struct { // contains filtered or unexported fields }
func NewBulkHandler ¶
func (*BulkHandler[T]) Close ¶
func (h *BulkHandler[T]) Close()
func (*BulkHandler[T]) ReadMsg ¶
func (h *BulkHandler[T]) ReadMsg(ctx context.Context, r *kafka.Reader) error
func (*BulkHandler[T]) SetBatchSize ¶
func (h *BulkHandler[T]) SetBatchSize(batchSize int) *BulkHandler[T]
func (*BulkHandler[T]) SetDecodeFn ¶
func (h *BulkHandler[T]) SetDecodeFn(fn func([]byte) (T, error)) *BulkHandler[T]
func (*BulkHandler[T]) SetInterval ¶
func (h *BulkHandler[T]) SetInterval(interval time.Duration) *BulkHandler[T]
Click to show internal directories.
Click to hide internal directories.