config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MySql       *MySqlConf
	Redis       *RedisConf
	WsServer    *WsServerConf
	ApiHttp     *ApiHttpConf
	IMRpcServer *IMRpcServerConf
)

Functions

func Load

func Load() error

Types

type ApiHttpConf

type ApiHttpConf struct {
	Addr string
	Port int
}

type IMRpcServerConf

type IMRpcServerConf struct {
	Addr        string
	Port        int
	Network     string
	Etcd        []string
	Name        string
	EnableGroup bool
}

type MySqlConf

type MySqlConf struct {
	Host     string
	Port     int
	Username string
	Password string
	Db       string
	Charset  string
}

type RedisConf

type RedisConf struct {
	Host     string
	Port     int
	Password string
	Db       int
}

type WsServerConf

type WsServerConf struct {
	Addr string
	Port int
}

Jump to

Keyboard shortcuts

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