Documentation ¶
Index ¶
Constants ¶
View Source
const AppName = "kafkaClient"
Variables ¶
This section is empty.
Functions ¶
func GetConsumer ¶
func GetConsumer(topic, groupID string) *kafka.Reader
func GetProducer ¶
func GetProducer(topic string) *kafka.Writer
Types ¶
type Client ¶
type Client struct { ioc.ObjectImpl Username string `json:"username" yaml:"username"` Password string `json:"password" yaml:"password"` Debug bool `json:"debug" yaml:"debug"` Brokers []string `json:"brokers" yaml:"brokers"` Async bool `json:"async" yaml:"async"` Offset int64 `json:"offset" yaml:"offset"` // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.