Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewConsumer ¶
type Config ¶
type Config struct { Topics []string `json:"topics"` GroupId string `json:"group.id"` BootstrapServers string `json:"bootstrap.servers"` SecurityProtocol string `json:"security.protocol"` SaslMechanism string `json:"sasl.mechanism"` SaslUsername string `json:"sasl.username"` SaslPassword string `json:"sasl.password"` SslCaLocation string `json:"ssl.ca.location"` ConfigMap map[string]kafka.ConfigValue `json:"config.map"` }
type HandlerFunc ¶
type Option ¶
type Option func(opts *Options)
func Handler ¶
func Handler(handler HandlerFunc) Option
func RebalanceCb ¶
func RebalanceCb(rebalanceCb kafka.RebalanceCb) Option
type Options ¶
type Options struct { Topics []string Handler HandlerFunc RebalanceCb kafka.RebalanceCb IsDebug bool }
Click to show internal directories.
Click to hide internal directories.