msgtransfer

package
v3.5.0-rc.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ConsumerMsgs   = 3
	SourceMessages = 4
	MongoMessages  = 5
	ChannelNum     = 100
)

Variables

This section is empty.

Functions

func StartTransfer

func StartTransfer(prometheusPort int) error

Types

type Cmd2Value

type Cmd2Value struct {
	Cmd   int
	Value any
}

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(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 (OnlineHistoryMongoConsumerHandler) Cleanup

func (*OnlineHistoryMongoConsumerHandler) ConsumeClaim

func (OnlineHistoryMongoConsumerHandler) Setup

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 (*OnlineHistoryRedisConsumerHandler) ConsumeClaim

func (*OnlineHistoryRedisConsumerHandler) MessagesDistributionHandle

func (och *OnlineHistoryRedisConsumerHandler) MessagesDistributionHandle()

func (*OnlineHistoryRedisConsumerHandler) Run

func (och *OnlineHistoryRedisConsumerHandler) Run(channelID int)

func (*OnlineHistoryRedisConsumerHandler) 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