msgtransfer

package
v3.3.3-beta.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 30 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 interface{}
}

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 (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 PersistentConsumerHandler

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

func NewPersistentConsumerHandler

func NewPersistentConsumerHandler(database controller.ChatLogDatabase) *PersistentConsumerHandler

func (PersistentConsumerHandler) Cleanup

func (*PersistentConsumerHandler) ConsumeClaim

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