Documentation ¶
Index ¶
- type Consumer
- type ConsumerOption
- func AllPartitions() ConsumerOption
- func BeyondHighWaterMark(b bool) ConsumerOption
- func FromCurrentOffset() ConsumerOption
- func FromOldestOffset() ConsumerOption
- func FromTime(t time.Time) ConsumerOption
- func Nop() ConsumerOption
- func SpecificPartitions(ps map[int32]bool) ConsumerOption
- func UntilTime(t time.Time) ConsumerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consumer ¶
type Consumer struct { Client sarama.Client Topic string Partitions map[int32]bool // which partitions to consume TMax *time.Time // abort consumption if a message later than this is received BeyondHighWater bool // if set, wait for new messages. otherwise, consumption stops when last message (acc to high wtr) is received. StartOffset map[int32]int64 // start offset per partition }
type ConsumerOption ¶
func AllPartitions ¶
func AllPartitions() ConsumerOption
func BeyondHighWaterMark ¶
func BeyondHighWaterMark(b bool) ConsumerOption
func FromCurrentOffset ¶
func FromCurrentOffset() ConsumerOption
func FromOldestOffset ¶
func FromOldestOffset() ConsumerOption
func FromTime ¶
func FromTime(t time.Time) ConsumerOption
func Nop ¶
func Nop() ConsumerOption
func SpecificPartitions ¶
func SpecificPartitions(ps map[int32]bool) ConsumerOption
func UntilTime ¶
func UntilTime(t time.Time) ConsumerOption
Click to show internal directories.
Click to hide internal directories.