Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consumer ¶ added in v0.4.2
type Consumer struct {
// contains filtered or unexported fields
}
Consumer definition of a Kafka consumer.
func New ¶
func New(name, ct, topic string, brokers []string, oo ...OptionFunc) (*Consumer, error)
New creates a ew Kafka consumer with defaults. To override those default you should provide a option.
type Offset ¶ added in v0.4.2
type Offset int64
Offset defines the offset of messages inside a topic.
type OptionFunc ¶ added in v0.4.3
OptionFunc definition for configuring the consumer in a functional way.
func Buffer ¶ added in v0.4.3
func Buffer(buf int) OptionFunc
Buffer option for adjusting the incoming messages buffer.
func Start ¶ added in v0.4.3
func Start(start Offset) OptionFunc
Start option for adjusting the start point in the topic.
func Timeout ¶ added in v0.4.3
func Timeout(timeout time.Duration) OptionFunc
Timeout option for adjusting the timeout of the connection.
Click to show internal directories.
Click to hide internal directories.