msgtransfer

package
v3.7.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func Start added in v3.7.0

func Start(ctx context.Context, index int, config *Config) error

Types

type Cmd2Value

type Cmd2Value struct {
	Cmd   int
	Value any
}

type Config added in v3.7.0

type Config struct {
	MsgTransfer     config.MsgTransfer
	RedisConfig     config.Redis
	MongodbConfig   config.Mongo
	KafkaConfig     config.Kafka
	ZookeeperConfig config.ZooKeeper
	Share           config.Share
	WebhooksConfig  config.Webhooks
}

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(kafkaConf *config.Kafka, msgDatabase controller.CommonMsgDatabase,
	conversationRpcClient *rpcclient.ConversationRpcClient, groupRpcClient *rpcclient.GroupRpcClient) (*MsgTransfer, error)

func (*MsgTransfer) Start

func (m *MsgTransfer) Start(index int, config *Config) error

type OnlineHistoryMongoConsumerHandler

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

func NewOnlineHistoryMongoConsumerHandler

func NewOnlineHistoryMongoConsumerHandler(kafkaConf *config.Kafka, database controller.CommonMsgDatabase) (*OnlineHistoryMongoConsumerHandler, error)

func (OnlineHistoryMongoConsumerHandler) Cleanup

func (*OnlineHistoryMongoConsumerHandler) ConsumeClaim

func (OnlineHistoryMongoConsumerHandler) Setup

type OnlineHistoryRedisConsumerHandler

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

func NewOnlineHistoryRedisConsumerHandler

func NewOnlineHistoryRedisConsumerHandler(kafkaConf *config.Kafka, database controller.CommonMsgDatabase,
	conversationRpcClient *rpcclient.ConversationRpcClient, groupRpcClient *rpcclient.GroupRpcClient) (*OnlineHistoryRedisConsumerHandler, error)

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