Documentation ¶
Overview ¶
** description(""). ** copyright('tuoyun,www.tuoyun.net'). ** author("fg,Gordon@tuoyun.net"). ** time(2021/5/11 15:37).
Index ¶
- Constants
- func GetOnlineTopicStatus() int
- func Init()
- func Run(promethuesPort int)
- func SetOnlineTopicStatus(status int)
- func UnMarshallSetReactionMsgContent(content []byte) (notification *base_info.ReactionMessageModifierNotification, err error)
- type Cmd2Value
- type ModifyMsgConsumerHandler
- func (ModifyMsgConsumerHandler) Cleanup(_ sarama.ConsumerGroupSession) error
- func (mmc *ModifyMsgConsumerHandler) ConsumeClaim(sess sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error
- func (mmc *ModifyMsgConsumerHandler) Init()
- func (mmc *ModifyMsgConsumerHandler) ModifyMsg(cMsg *sarama.ConsumerMessage, msgKey string, _ sarama.ConsumerGroupSession)
- func (ModifyMsgConsumerHandler) Setup(_ sarama.ConsumerGroupSession) error
- type MsgChannelValue
- type OnlineHistoryMongoConsumerHandler
- func (OnlineHistoryMongoConsumerHandler) Cleanup(_ sarama.ConsumerGroupSession) error
- func (och *OnlineHistoryMongoConsumerHandler) ConsumeClaim(sess sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error
- func (och *OnlineHistoryMongoConsumerHandler) Init()
- func (OnlineHistoryMongoConsumerHandler) Setup(_ sarama.ConsumerGroupSession) error
- type OnlineHistoryRedisConsumerHandler
- func (OnlineHistoryRedisConsumerHandler) Cleanup(_ sarama.ConsumerGroupSession) error
- func (och *OnlineHistoryRedisConsumerHandler) ConsumeClaim(sess sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error
- func (och *OnlineHistoryRedisConsumerHandler) Init(cmdCh chan Cmd2Value)
- func (och *OnlineHistoryRedisConsumerHandler) MessagesDistributionHandle()
- func (och *OnlineHistoryRedisConsumerHandler) Run(channelID int)
- func (och *OnlineHistoryRedisConsumerHandler) SendMessageToMongoCH(aggregationID string, triggerID string, messages []*pbMsg.MsgDataToMQ, ...)
- func (OnlineHistoryRedisConsumerHandler) Setup(_ sarama.ConsumerGroupSession) error
- type PersistentConsumerHandler
- func (PersistentConsumerHandler) Cleanup(_ sarama.ConsumerGroupSession) error
- func (pc *PersistentConsumerHandler) ConsumeClaim(sess sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error
- func (pc *PersistentConsumerHandler) Init()
- func (PersistentConsumerHandler) Setup(_ sarama.ConsumerGroupSession) error
- type TriggerChannelValue
Constants ¶
View Source
const AggregationMessages = 4
View Source
const ChannelNum = 100
View Source
const ConsumerMsgs = 3
View Source
const MongoMessages = 5
View Source
const Msg = 2
View Source
const OnlineTopicBusy = 1
View Source
const OnlineTopicVacancy = 0
Variables ¶
This section is empty.
Functions ¶
func GetOnlineTopicStatus ¶
func GetOnlineTopicStatus() int
func SetOnlineTopicStatus ¶
func SetOnlineTopicStatus(status int)
func UnMarshallSetReactionMsgContent ¶
func UnMarshallSetReactionMsgContent(content []byte) (notification *base_info.ReactionMessageModifierNotification, err error)
Types ¶
type ModifyMsgConsumerHandler ¶
type ModifyMsgConsumerHandler struct {
// contains filtered or unexported fields
}
func (ModifyMsgConsumerHandler) Cleanup ¶
func (ModifyMsgConsumerHandler) Cleanup(_ sarama.ConsumerGroupSession) error
func (*ModifyMsgConsumerHandler) ConsumeClaim ¶
func (mmc *ModifyMsgConsumerHandler) ConsumeClaim(sess sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error
func (*ModifyMsgConsumerHandler) Init ¶
func (mmc *ModifyMsgConsumerHandler) Init()
func (*ModifyMsgConsumerHandler) ModifyMsg ¶
func (mmc *ModifyMsgConsumerHandler) ModifyMsg(cMsg *sarama.ConsumerMessage, msgKey string, _ sarama.ConsumerGroupSession)
func (ModifyMsgConsumerHandler) Setup ¶
func (ModifyMsgConsumerHandler) Setup(_ sarama.ConsumerGroupSession) error
type MsgChannelValue ¶
type MsgChannelValue struct {
// contains filtered or unexported fields
}
type OnlineHistoryMongoConsumerHandler ¶
type OnlineHistoryMongoConsumerHandler struct {
// contains filtered or unexported fields
}
func (OnlineHistoryMongoConsumerHandler) Cleanup ¶
func (OnlineHistoryMongoConsumerHandler) Cleanup(_ sarama.ConsumerGroupSession) error
func (*OnlineHistoryMongoConsumerHandler) ConsumeClaim ¶
func (och *OnlineHistoryMongoConsumerHandler) ConsumeClaim(sess sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error
func (*OnlineHistoryMongoConsumerHandler) Init ¶
func (och *OnlineHistoryMongoConsumerHandler) Init()
func (OnlineHistoryMongoConsumerHandler) Setup ¶
func (OnlineHistoryMongoConsumerHandler) Setup(_ sarama.ConsumerGroupSession) error
type OnlineHistoryRedisConsumerHandler ¶
type OnlineHistoryRedisConsumerHandler struct {
// contains filtered or unexported fields
}
func (OnlineHistoryRedisConsumerHandler) Cleanup ¶
func (OnlineHistoryRedisConsumerHandler) Cleanup(_ sarama.ConsumerGroupSession) error
func (*OnlineHistoryRedisConsumerHandler) ConsumeClaim ¶
func (och *OnlineHistoryRedisConsumerHandler) ConsumeClaim(sess sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim) error
func (*OnlineHistoryRedisConsumerHandler) Init ¶
func (och *OnlineHistoryRedisConsumerHandler) Init(cmdCh chan Cmd2Value)
func (*OnlineHistoryRedisConsumerHandler) MessagesDistributionHandle ¶
func (och *OnlineHistoryRedisConsumerHandler) MessagesDistributionHandle()
func (*OnlineHistoryRedisConsumerHandler) Run ¶
func (och *OnlineHistoryRedisConsumerHandler) Run(channelID int)
func (*OnlineHistoryRedisConsumerHandler) SendMessageToMongoCH ¶
func (och *OnlineHistoryRedisConsumerHandler) SendMessageToMongoCH(aggregationID string, triggerID string, messages []*pbMsg.MsgDataToMQ, lastSeq uint64)
func (OnlineHistoryRedisConsumerHandler) Setup ¶
func (OnlineHistoryRedisConsumerHandler) Setup(_ sarama.ConsumerGroupSession) error
type PersistentConsumerHandler ¶
type PersistentConsumerHandler struct {
// contains filtered or unexported fields
}
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) Init ¶
func (pc *PersistentConsumerHandler) Init()
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.