Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SHA256 scram.HashGeneratorFcn = sha256.New SHA512 scram.HashGeneratorFcn = sha512.New )
Functions ¶
func InitConsumer ¶
func InitConsumer(cfg *Config, dataChan chan *ConsumerData, f ...FuncCfg)
Types ¶
type Consumer ¶
type Consumer struct {
// contains filtered or unexported fields
}
Consumer represents a Sarama consumer group consumer
func (*Consumer) Cleanup ¶
func (consumer *Consumer) Cleanup(sarama.ConsumerGroupSession) error
Cleanup is run at the end of a session, once all ConsumeClaim goroutines have exited
func (*Consumer) ConsumeClaim ¶
func (consumer *Consumer) ConsumeClaim(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error
ConsumeClaim must start a consumer loop of ConsumerGroupClaim's Messages().
type ConsumerData ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func InitProducer ¶
type FuncCfg ¶
func SetClientId ¶
func SetOffsetsInitial ¶
func SetPartitioner ¶
func SetPartitioner(v sarama.PartitionerConstructor) FuncCfg
func SetReBalanceStrategy ¶
func SetReBalanceStrategy(v sarama.BalanceStrategy) FuncCfg
func SetRequiredAcks ¶
func SetRequiredAcks(v sarama.RequiredAcks) FuncCfg
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.