Documentation ¶
Index ¶
- Variables
- func BrokerConfig(c *sarama.Config) broker.Option
- func ClusterConfig(c *sarama.Config) broker.Option
- func NewBroker(opts ...broker.Option) broker.Broker
- func NewShardMessage(value string, header map[string]string, body []byte) *broker.Message
- func SubscribeConfig(c *sarama.Config) broker.SubscribeOption
- func SubscribeContext(ctx context.Context) broker.SubscribeOption
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultBrokerConfig = sarama.NewConfig() DefaultClusterConfig = sarama.NewConfig() )
Functions ¶
func NewShardMessage ¶
func SubscribeConfig ¶
func SubscribeConfig(c *sarama.Config) broker.SubscribeOption
func SubscribeContext ¶
func SubscribeContext(ctx context.Context) broker.SubscribeOption
SubscribeContext set the context for broker.SubscribeOption
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.