Documentation ¶
Index ¶
- func Start(ctx context.Context, index int, config *Config) error
- type Config
- type ContextMsg
- type MsgTransfer
- type OnlineHistoryMongoConsumerHandler
- func (OnlineHistoryMongoConsumerHandler) Cleanup(_ sarama.ConsumerGroupSession) error
- func (mc *OnlineHistoryMongoConsumerHandler) ConsumeClaim(sess sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error
- func (OnlineHistoryMongoConsumerHandler) Setup(_ sarama.ConsumerGroupSession) error
- type OnlineHistoryRedisConsumerHandler
- func (och *OnlineHistoryRedisConsumerHandler) Cleanup(_ sarama.ConsumerGroupSession) error
- func (och *OnlineHistoryRedisConsumerHandler) ConsumeClaim(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error
- func (och *OnlineHistoryRedisConsumerHandler) Setup(_ sarama.ConsumerGroupSession) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContextMsg ¶
type ContextMsg struct {
// contains filtered or unexported fields
}
type MsgTransfer ¶
type MsgTransfer struct {
// contains filtered or unexported fields
}
type OnlineHistoryMongoConsumerHandler ¶
type OnlineHistoryMongoConsumerHandler struct {
// contains filtered or unexported fields
}
func NewOnlineHistoryMongoConsumerHandler ¶
func NewOnlineHistoryMongoConsumerHandler(kafkaConf *config.Kafka, database controller.CommonMsgDatabase) (*OnlineHistoryMongoConsumerHandler, error)
func (OnlineHistoryMongoConsumerHandler) Cleanup ¶
func (OnlineHistoryMongoConsumerHandler) Cleanup(_ sarama.ConsumerGroupSession) error
func (*OnlineHistoryMongoConsumerHandler) ConsumeClaim ¶
func (mc *OnlineHistoryMongoConsumerHandler) ConsumeClaim( sess sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim, ) error
func (OnlineHistoryMongoConsumerHandler) Setup ¶
func (OnlineHistoryMongoConsumerHandler) Setup(_ sarama.ConsumerGroupSession) error
type OnlineHistoryRedisConsumerHandler ¶
type OnlineHistoryRedisConsumerHandler struct {
// contains filtered or unexported fields
}
func NewOnlineHistoryRedisConsumerHandler ¶
func NewOnlineHistoryRedisConsumerHandler(kafkaConf *config.Kafka, database controller.CommonMsgDatabase, conversationRpcClient *rpcclient.ConversationRpcClient, groupRpcClient *rpcclient.GroupRpcClient) (*OnlineHistoryRedisConsumerHandler, error)
func (*OnlineHistoryRedisConsumerHandler) Cleanup ¶
func (och *OnlineHistoryRedisConsumerHandler) Cleanup(_ sarama.ConsumerGroupSession) error
func (*OnlineHistoryRedisConsumerHandler) ConsumeClaim ¶
func (och *OnlineHistoryRedisConsumerHandler) ConsumeClaim(session sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error
func (*OnlineHistoryRedisConsumerHandler) Setup ¶
func (och *OnlineHistoryRedisConsumerHandler) Setup(_ sarama.ConsumerGroupSession) error
Click to show internal directories.
Click to hide internal directories.