config

package
v1.4.7 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 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