Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AsyncConsumer ¶
type AsyncConsumer interface { // Start start the consumer Start(cb func(uint32, uint64, [][]byte)) // Commit commit completed offset Commit(map[uint32]uint64, func(error)) // CommitPartition commit completed offset CommitPartition(uint32, uint64, func(error)) // Stop stop consumer Stop() }
AsyncConsumer async consumer
func NewAsyncConsumer ¶
NewAsyncConsumer create a async consumer
func NewAsyncConsumerWithOffsets ¶
func NewAsyncConsumerWithOffsets(tid uint64, store storage.Storage, consumer []byte, offsets []uint64) (AsyncConsumer, error)
NewAsyncConsumerWithOffsets create a async consumer with offsets
Click to show internal directories.
Click to hide internal directories.