Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConsumerFactory ¶ added in v1.0.15
func NewProducerFactory ¶ added in v1.0.15
Types ¶
type Consumer ¶
type Consumer struct {
// contains filtered or unexported fields
}
func NewConsumer ¶
type ConsumerConfig ¶
type ConsumerConfig struct { Name string `yaml:"name"` Addrs []string `yaml:"addrs"` ConsumerGroup string `yaml:"consumer_group"` Topics []string `yaml:"topics"` OffsetsInitial int64 `yaml:"offsets_initial"` OffsetsAutoCommit bool `yaml:"offsets_auto_commit"` }
func (ConsumerConfig) Marshal ¶ added in v1.0.15
func (c ConsumerConfig) Marshal() ([]byte, error)
type Producer ¶
type Producer struct {
// contains filtered or unexported fields
}
func NewProducer ¶
type ProducerConfig ¶
func (ProducerConfig) Marshal ¶ added in v1.0.15
func (c ProducerConfig) Marshal() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.