config

package
v0.0.0-...-55e1567 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GlobalServerConfig ServerConfig
	GlobalNacosConfig  NacosConfig
)

Functions

This section is empty.

Types

type ChatSrvConfig

type ChatSrvConfig struct {
	Name string `mapstructure:"name" json:"name"`
}

type MysqlConfig

type MysqlConfig struct {
	Host     string `mapstructure:"host" json:"host"`
	Port     int    `mapstructure:"port" json:"port"`
	Name     string `mapstructure:"db" json:"db"`
	User     string `mapstructure:"user" json:"user"`
	Password string `mapstructure:"password" json:"password"`
	Salt     string `mapstructure:"salt" json:"salt"`
}

type NacosConfig

type NacosConfig struct {
	Host      string `mapstructure:"host"`
	Port      uint64 `mapstructure:"port"`
	Namespace string `mapstructure:"namespace"`
	User      string `mapstructure:"user"`
	Password  string `mapstructure:"password"`
	DataId    string `mapstructure:"dataid"`
	Group     string `mapstructure:"group"`
}

type OtelConfig

type OtelConfig struct {
	EndPoint string `mapstructure:"endpoint" json:"endpoint"`
}

type RabbitMqConfig

type RabbitMqConfig struct {
	Host     string `mapstructure:"host" json:"host"`
	Port     int    `mapstructure:"port" json:"port"`
	Exchange string `mapstructure:"exchange" json:"exchange"`
	User     string `mapstructure:"user" json:"user"`
	Password string `mapstructure:"password" json:"password"`
}

type RedisConfig

type RedisConfig struct {
	Host     string `mapstructure:"host" json:"host"`
	Port     int    `mapstructure:"port" json:"port"`
	Password string `mapstructure:"password" json:"password"`
}

type ServerConfig

type ServerConfig struct {
	Name          string         `mapstructure:"name" json:"name"`
	Host          string         `mapstructure:"host" json:"host"`
	MysqlInfo     MysqlConfig    `mapstructure:"mysql" json:"mysql"`
	RedisInfo     RedisConfig    `mapstructure:"redis" json:"redis"`
	RabbitMqInfo  RabbitMqConfig `mapstructure:"rabbitmq" json:"rabbitmq"`
	OtelInfo      OtelConfig     `mapstructure:"otel" json:"otel"`
	UserSrvConfig UserSrvConfig  `mapstructure:"user_srv" json:"user_srv"`
	ChatSrvConfig ChatSrvConfig  `mapstructure:"chat_srv" json:"chat_srv"`
}

type UserSrvConfig

type UserSrvConfig struct {
	Name string `mapstructure:"name" json:"name"`
}

Jump to

Keyboard shortcuts

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