Documentation ¶
Index ¶
- func Key(key string) broker.PublishOption
- func New(opts ...b.Option) b.Broker
- func PublishConfig(c *sarama.Config) broker.Option
- func PublishMiddleware(ms ...middleware.Middleware) broker.PublishOption
- func SubscribeConfig(c *sarama.Config) broker.Option
- func SubscribeMiddleware(ms ...middleware.Middleware) broker.SubscribeOption
- type Kafka
- func (broker *Kafka) Address() string
- func (broker *Kafka) Connect() error
- func (broker *Kafka) Disconnect() error
- func (broker *Kafka) Init(opts ...b.Option) error
- func (broker *Kafka) Options() b.Options
- func (broker *Kafka) Publish(ctx context.Context, topic string, msg *b.Message, opts ...b.PublishOption) error
- func (broker *Kafka) String() string
- func (broker *Kafka) Subscribe(topic string, h b.Handler, opts ...b.SubscribeOption) (b.Subscriber, error)
- type SendMessageResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Key ¶
func Key(key string) broker.PublishOption
Key The partitioning key for this message. Pre-existing Encoders include StringEncoder.
func PublishMiddleware ¶
func PublishMiddleware(ms ...middleware.Middleware) broker.PublishOption
func SubscribeMiddleware ¶
func SubscribeMiddleware(ms ...middleware.Middleware) broker.SubscribeOption
Types ¶
type Kafka ¶
type Kafka struct {
// contains filtered or unexported fields
}
func (*Kafka) Disconnect ¶
type SendMessageResponse ¶
type SendMessageResponse struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.