Documentation
¶
Index ¶
- func SCRAMClientGeneratorFuncSHA256() sarama.SCRAMClient
- func SCRAMClientGeneratorFuncSHA512() sarama.SCRAMClient
- type ConsumerGroupHandler
- type ConsumerRegister
- type Kafka
- type KafkaRunReader
- type Memory
- type Message
- func (m *Message) GetContext() context.Context
- func (m *Message) GetErrorCount() int
- func (m *Message) GetID() string
- func (m *Message) GetPrefix() (prefix string)
- func (m *Message) GetStream() string
- func (m *Message) GetValues() map[string]any
- func (m *Message) SetContext(ctx context.Context)
- func (m *Message) SetErrorCount(count int)
- func (m *Message) SetID(id string)
- func (m *Message) SetPrefix(prefix string)
- func (m *Message) SetStream(stream string)
- func (m *Message) SetValues(values map[string]any)
- type MessageHandler
- func (h *MessageHandler) Cleanup(sarama.ConsumerGroupSession) error
- func (h *MessageHandler) ConsumeClaim(s sarama.ConsumerGroupSession, c sarama.ConsumerGroupClaim) error
- func (h *MessageHandler) SetConsumerFunc(f storage.ConsumerFunc)
- func (h *MessageHandler) Setup(s sarama.ConsumerGroupSession) error
- type NSQ
- type NodesResp
- type Redis
- type XDGSCRAMClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SCRAMClientGeneratorFuncSHA256 ¶
func SCRAMClientGeneratorFuncSHA256() sarama.SCRAMClient
func SCRAMClientGeneratorFuncSHA512 ¶
func SCRAMClientGeneratorFuncSHA512() sarama.SCRAMClient
Types ¶
type ConsumerGroupHandler ¶
type ConsumerGroupHandler interface {
sarama.ConsumerGroupHandler
SetConsumerFunc(f storage.ConsumerFunc)
}
type ConsumerRegister ¶
type ConsumerRegister struct {
Topic string
GroupID string
Partition int
Func ConsumerGroupHandler
}
type KafkaRunReader ¶
type KafkaRunReader struct {
Topic string
GroupID string
Func storage.ConsumerFunc
}
type Message ¶
type Message struct {
redisqueue.Message
ErrorCount int
// contains filtered or unexported fields
}
func (*Message) GetContext ¶
func (*Message) GetErrorCount ¶
func (*Message) SetContext ¶
func (*Message) SetErrorCount ¶
type MessageHandler ¶
type MessageHandler struct {
// contains filtered or unexported fields
}
func (*MessageHandler) Cleanup ¶
func (h *MessageHandler) Cleanup(sarama.ConsumerGroupSession) error
func (*MessageHandler) ConsumeClaim ¶
func (h *MessageHandler) ConsumeClaim(s sarama.ConsumerGroupSession, c sarama.ConsumerGroupClaim) error
func (*MessageHandler) SetConsumerFunc ¶
func (h *MessageHandler) SetConsumerFunc(f storage.ConsumerFunc)
func (*MessageHandler) Setup ¶
func (h *MessageHandler) Setup(s sarama.ConsumerGroupSession) error
type NSQ ¶
type NSQ struct {
// contains filtered or unexported fields
}
type NodesResp ¶
type NodesResp struct {
Nodes []*peerInfo `json:"nodes"`
Message string `json:"message"`
}
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
Redis cache implement
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.