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 Config

type Config struct {
	service.ServiceConf
	Kafka     KafkaConfig
	Redis     RedisConfig
	Mongo     MongoConfig
	ImUserRpc zrpc.RpcClientConf
}

type KafkaConfig

type KafkaConfig struct {
	StorageConsumer StorageConsumer
	SinglePush      xkafka.ProducerConfig
	GroupPush       xkafka.ProducerConfig
}

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
}

type StorageConsumer

type StorageConsumer struct {
	xkafka.ProducerConfig
	MsgToHistoryGroupID string
}

Jump to

Keyboard shortcuts

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