Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConsumerGroup ¶
type ConsumerGroup struct {
// contains filtered or unexported fields
}
func NewConsumerGroup ¶
func (*ConsumerGroup) Close ¶
func (c *ConsumerGroup) Close() error
type SamplerHandler ¶
type SamplerHandler struct {
// contains filtered or unexported fields
}
Handler represents a Sarama consumer group consumer
func NewSamplerHandler ¶
func NewSamplerHandler(logger logging.Logger, samplerOpts []sampler.Option) *SamplerHandler
func (*SamplerHandler) Cleanup ¶
func (h *SamplerHandler) Cleanup(sarama.ConsumerGroupSession) error
Cleanup is run at the end of a session, once all ConsumeClaim goroutines have exited
func (*SamplerHandler) ConsumeClaim ¶
func (h *SamplerHandler) ConsumeClaim(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error
ConsumeClaim must start a consumer loop of ConsumerGroupClaim's Messages().
func (*SamplerHandler) Setup ¶
func (h *SamplerHandler) Setup(sess sarama.ConsumerGroupSession) error
Setup is run at the beginning of a new session, before ConsumeClaim
type XDGSCRAMClient ¶
type XDGSCRAMClient struct { *scram.Client *scram.ClientConversation scram.HashGeneratorFcn }
func (*XDGSCRAMClient) Begin ¶
func (x *XDGSCRAMClient) Begin(userName, password, authzID string) (err error)
func (*XDGSCRAMClient) Done ¶
func (x *XDGSCRAMClient) Done() bool
Click to show internal directories.
Click to hide internal directories.