config

package
v0.0.0-...-592b0ac Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: Apache-2.0 Imports: 2 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 {
	zrpc.RpcServerConf
	NodeID int64 //节点id
	Mysql  struct {
		DataSource string
	}
	CacheRedis cache.ClusterConf
	Kafka      struct {
		Brokers []string //kafka的节点
		Group   string   //kafka的分组
	}
	Mqtt struct {
		Brokers []string //mqtt服务器节点
		User    string   //用户名
		Pass    string   `json:",optional"` //密码
	}
	Mongo struct {
		Url      string //mongodb连接串
		Database string //选择的数据库
	}
}

Jump to

Keyboard shortcuts

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