config

package
v0.0.0-...-efd9455 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 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 {
	CallbackWordFilter              CallbackConfigItem
	CallbackAtAllInSuperGroup       CallbackConfigItem
	CallbackBeforeSendGroupMsg      CallbackConfigItem
	CallbackAfterSendGroupMsg       CallbackConfigItem
	CallbackBeforeSendSuperGroupMsg CallbackConfigItem
	CallbackAfterSendSuperGroupMsg  CallbackConfigItem
	CallbackBeforeSendSingleMsg     CallbackConfigItem
	CallbackAfterSendSingleMsg      CallbackConfigItem
}

type CallbackConfigItem

type CallbackConfigItem struct {
	Enable          bool
	ContinueOnError bool
}

type CassandraConfig

type CassandraConfig struct {
	xcql.CassandraConfig
	DBDatabase                 string
	SingleChatMsgTableName     string
	SuperGroupChatMsgTableName string
}

type Config

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

type KafkaConfig

type KafkaConfig struct {
	Online  xkafka.ProducerConfig
	Offline xkafka.ProducerConfig
}

type MessageVerifyConfig

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

type MongoConfig

type MongoConfig struct {
	global.MongoConfig
	DBDatabase                      string
	DBTimeout                       int
	SingleChatMsgCollectionName     string
	SuperGroupChatMsgCollectionName 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