config

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MySql    *MySqlConf
	WsServer *WsServerConf
)

Functions

func MustLoad added in v1.1.0

func MustLoad()

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 {
	ID        string
	Addr      string
	Port      int
	JwtSecret string
}

Jump to

Keyboard shortcuts

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