Documentation ¶
Index ¶
- func ParseBalanceStrategy(assignor string) sarama.BalanceStrategy
- func ParseCodec(codec string) sarama.CompressionCodec
- func ParseRequiredAcks(acks string) sarama.RequiredAcks
- func ParseVersion(config *sarama.Config, version string) error
- func SASLVersion(kafkaVersion sarama.KafkaVersion, saslVersion *int) (int16, error)
- type AsyncProducerResult
- type OptionFn
- type Options
- type Producer
- type ProducerConfig
- type PublishResponse
- type SyncProducerResult
- type TlsConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseBalanceStrategy ¶
func ParseBalanceStrategy(assignor string) sarama.BalanceStrategy
func ParseCodec ¶
func ParseCodec(codec string) sarama.CompressionCodec
func ParseRequiredAcks ¶
func ParseRequiredAcks(acks string) sarama.RequiredAcks
func SASLVersion ¶
func SASLVersion(kafkaVersion sarama.KafkaVersion, saslVersion *int) (int16, error)
Types ¶
type AsyncProducerResult ¶
type Producer ¶
type Producer struct { io.Closer Config *ProducerConfig // contains filtered or unexported fields }
type ProducerConfig ¶
type ProducerConfig struct { Topic string Version string Brokers []string Codec string MaxMessageBytes int Sync bool RequiredAcks sarama.RequiredAcks TlsConfig TlsConfig Context context.Context SASLUser string SASLPassword string SASLVersion *int }
func (*ProducerConfig) NewProducer ¶
func (c *ProducerConfig) NewProducer() (*Producer, error)
type PublishResponse ¶
type PublishResponse struct { Result interface{} Topic string }
type SyncProducerResult ¶
Click to show internal directories.
Click to hide internal directories.