Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consumer ¶
type Consumer interface { Consume(cb func(value []byte) error) ConsumeMessage(cb func(value *sarama.ConsumerMessage) error) Close() }
func InitConsumer ¶
func InitConsumer(groupCfg types.Config, offsetCfg types.OffsetConfig) Consumer
type IOffsetManagerRepo ¶
type OffsetRepo ¶
type OffsetRepo struct {
// contains filtered or unexported fields
}
func NewOffsetManger ¶
func NewOffsetManger(cfg types.OffsetConfig) (*OffsetRepo, error)
func (*OffsetRepo) Close ¶
func (repo *OffsetRepo) Close()
func (*OffsetRepo) GetPartitionNextOffset ¶
func (repo *OffsetRepo) GetPartitionNextOffset() (int64, error)
func (*OffsetRepo) ResetPartitionOffset ¶
func (repo *OffsetRepo) ResetPartitionOffset(offset int64)
Click to show internal directories.
Click to hide internal directories.