Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AckHandler ¶
AckHandler 统一为 AckHandler
type QReader ¶
type QReader interface {
QCloser
// ReadMsgByGroup 读完消息后会自动提交offset
ReadMsgByGroup(ctx context.Context, topic, groupID string, value interface{}) (context.Context, error)
// ReadMsgByPartition ...
ReadMsgByPartition(ctx context.Context, topic string, partition int, value interface{}) (context.Context, error)
// FetchMsgByGroup 读完消息后不会自动提交offset,需要手动调用Handle.CommitMsg方法来提交offset
FetchMsgByGroup(ctx context.Context, topic, groupID string, value interface{}) (context.Context, AckHandler, error)
}
type QueueModel ¶
Click to show internal directories.
Click to hide internal directories.