config

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallbackConfig

type CallbackConfig struct {
	CallbackBeforeSendGroupMsg  CallbackConfigItem
	CallbackAfterSendGroupMsg   CallbackConfigItem
	CallbackBeforeSendSingleMsg CallbackConfigItem
	CallbackAfterSendSingleMsg  CallbackConfigItem
}

type CallbackConfigItem

type CallbackConfigItem struct {
	Enable          bool
	ContinueOnError bool
}

type CassandraConfig

type CassandraConfig struct {
	xcql.CassandraConfig
	SingleChatMsgTableName string
	GroupChatMsgTableName  string
}

type Config

type Config struct {
	zrpc.RpcServerConf
	Kafka          xkafka.ProducerConfig
	Callback       CallbackConfig
	MessageVerify  MessageVerifyConfig
	ImUserRpc      zrpc.RpcClientConf
	MsgCallbackRpc zrpc.RpcClientConf
	RedisConfig    RedisConfig
	Mongo          MongoConfig
	Cassandra      CassandraConfig
	HistoryDBType  string // mongo or cassandra
}

type MessageVerifyConfig

type MessageVerifyConfig struct {
	FriendVerify bool // 只有好友才能发送消息
}

type MongoConfig

type MongoConfig struct {
	global.MongoConfig
	DBDatabase                  string
	DBTimeout                   int
	SingleChatMsgCollectionName string
	GroupChatMsgCollectionName  string
}

type RedisConfig

type RedisConfig struct {
	Conf redis.RedisConf
	DB   int
}

Jump to

Keyboard shortcuts

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