Documentation ¶
Index ¶
- Constants
- func StartTransfer(prometheusPort int) error
- type Cmd2Value
- type ContextMsg
- type MsgChannelValue
- 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(sess sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error
- func (och *OnlineHistoryRedisConsumerHandler) MessagesDistributionHandle()
- func (och *OnlineHistoryRedisConsumerHandler) Run(channelID int)
- func (och *OnlineHistoryRedisConsumerHandler) Setup(_ sarama.ConsumerGroupSession) error
- type PersistentConsumerHandler
- type TriggerChannelValue
Constants ¶
View Source
const ( ConsumerMsgs = 3 SourceMessages = 4 MongoMessages = 5 ChannelNum = 100 )
Variables ¶
This section is empty.
Functions ¶
func StartTransfer ¶
Types ¶
type ContextMsg ¶
type ContextMsg struct {
// contains filtered or unexported fields
}
type MsgChannelValue ¶
type MsgChannelValue struct {
// contains filtered or unexported fields
}
type MsgTransfer ¶
type MsgTransfer struct {
// contains filtered or unexported fields
}
func NewMsgTransfer ¶
func NewMsgTransfer(chatLogDatabase controller.ChatLogDatabase, msgDatabase controller.CommonMsgDatabase, conversationRpcClient *rpcclient.ConversationRpcClient, groupRpcClient *rpcclient.GroupRpcClient, ) *MsgTransfer
func (*MsgTransfer) Start ¶
func (m *MsgTransfer) Start(prometheusPort int) error
type OnlineHistoryMongoConsumerHandler ¶
type OnlineHistoryMongoConsumerHandler struct {
// contains filtered or unexported fields
}
func NewOnlineHistoryMongoConsumerHandler ¶
func NewOnlineHistoryMongoConsumerHandler(database controller.CommonMsgDatabase) *OnlineHistoryMongoConsumerHandler
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( database controller.CommonMsgDatabase, conversationRpcClient *rpcclient.ConversationRpcClient, groupRpcClient *rpcclient.GroupRpcClient, ) *OnlineHistoryRedisConsumerHandler
func (*OnlineHistoryRedisConsumerHandler) Cleanup ¶
func (och *OnlineHistoryRedisConsumerHandler) Cleanup(_ sarama.ConsumerGroupSession) error
func (*OnlineHistoryRedisConsumerHandler) ConsumeClaim ¶
func (och *OnlineHistoryRedisConsumerHandler) ConsumeClaim( sess sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim, ) error
func (*OnlineHistoryRedisConsumerHandler) MessagesDistributionHandle ¶
func (och *OnlineHistoryRedisConsumerHandler) MessagesDistributionHandle()
func (*OnlineHistoryRedisConsumerHandler) Run ¶
func (och *OnlineHistoryRedisConsumerHandler) Run(channelID int)
func (*OnlineHistoryRedisConsumerHandler) Setup ¶
func (och *OnlineHistoryRedisConsumerHandler) Setup(_ sarama.ConsumerGroupSession) error
type PersistentConsumerHandler ¶
type PersistentConsumerHandler struct {
// contains filtered or unexported fields
}
func NewPersistentConsumerHandler ¶
func NewPersistentConsumerHandler(database controller.ChatLogDatabase) *PersistentConsumerHandler
func (PersistentConsumerHandler) Cleanup ¶
func (PersistentConsumerHandler) Cleanup(_ sarama.ConsumerGroupSession) error
func (*PersistentConsumerHandler) ConsumeClaim ¶
func (pc *PersistentConsumerHandler) ConsumeClaim( sess sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim, ) error
func (PersistentConsumerHandler) Setup ¶
func (PersistentConsumerHandler) Setup(_ sarama.ConsumerGroupSession) error
type TriggerChannelValue ¶
type TriggerChannelValue struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.