conf

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const CallbackUrl = "CALLBACK_URL"
View Source
const ClearSocketConnectionNum = 1000

每多少个用户下线触发一次清理通道GC操作

View Source
const EveryTimeActiveTimeOut = 600

每次续期等待客户端下次响应超时时间

View Source
const FirstLinkActiveTimeOut = 60

第一次等待客户端请求超时时间

View Source
const HttpPort = "HTTP_PORT"
View Source
const IntranetLocalIP = "INTRANET_LOCAL_IP"
View Source
const NetworkLocalIP = "NETWORK_LOCAL_IP"
View Source
const WebSocketPort = "SOCKET_PORT"

Variables

View Source
var (
	NetworkLocalIp   string //外网IP
	IntranetLocalIp  string //内网IP
	SocketListenPort string //socket监听端口
	HttpListenPort   string //http监听端口
	CallbackUrlPath  string //事件回调地址
)
View Source
var ConfMap = make(map[string]string)

Functions

func GetConf

func GetConf(key string) string

获取配置

func InitConf

func InitConf()

初始化CONF

Types

This section is empty.

Jump to

Keyboard shortcuts

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