config

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Common    *CommonConf
	MySql     *MySqlConf
	WsServer  *WsServerConf
	IMService *IMRpcServerConf
	Redis     *RedisConf
)

Functions

func MustLoad

func MustLoad()

Types

type ApiHttpConf

type ApiHttpConf struct {
	Addr string
	Port int
}

type CommonConf added in v1.0.1

type CommonConf struct {
	StoreOfflineMessage bool
	StoreMessageHistory bool
}

type IMRpcServerConf

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

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