logic

package
v0.0.0-...-4702bed Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

** description(""). ** copyright('tuoyun,www.tuoyun.net'). ** author("fg,Gordon@tuoyun.net"). ** time(2021/5/11 15:37).

Index

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 Init

func Init()

func Run

func Run(promethuesPort int)

func SetOnlineTopicStatus

func SetOnlineTopicStatus(status int)

func UnMarshallSetReactionMsgContent

func UnMarshallSetReactionMsgContent(content []byte) (notification *base_info.ReactionMessageModifierNotification, err error)

Types

type Cmd2Value

type Cmd2Value struct {
	Cmd   int
	Value interface{}
}

type ModifyMsgConsumerHandler

type ModifyMsgConsumerHandler struct {
	// contains filtered or unexported fields
}

func (ModifyMsgConsumerHandler) Cleanup

func (*ModifyMsgConsumerHandler) ConsumeClaim

func (*ModifyMsgConsumerHandler) Init

func (mmc *ModifyMsgConsumerHandler) Init()

func (*ModifyMsgConsumerHandler) ModifyMsg

func (ModifyMsgConsumerHandler) Setup

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) ConsumeClaim

func (*OnlineHistoryMongoConsumerHandler) Init

func (OnlineHistoryMongoConsumerHandler) Setup

type OnlineHistoryRedisConsumerHandler

type OnlineHistoryRedisConsumerHandler struct {
	// contains filtered or unexported fields
}

func (OnlineHistoryRedisConsumerHandler) Cleanup

func (*OnlineHistoryRedisConsumerHandler) ConsumeClaim

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

type PersistentConsumerHandler

type PersistentConsumerHandler struct {
	// contains filtered or unexported fields
}

func (PersistentConsumerHandler) Cleanup

func (*PersistentConsumerHandler) ConsumeClaim

func (*PersistentConsumerHandler) Init

func (pc *PersistentConsumerHandler) Init()

func (PersistentConsumerHandler) Setup

type TriggerChannelValue

type TriggerChannelValue struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL