conf

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: May 24, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LenStackBuf = 1024
	Conf        = Config{}
	JSONTool    = jsonIter.ConfigCompatibleWithStandardLibrary
)

Functions

func GetEnv

func GetEnv(key, fallback string) string

func LoadConfig

func LoadConfig(Path string)

Read config.

Types

type Config

type Config struct {
	Log      map[string]interface{}
	Rpc      Rpc
	Module   map[string][]*ModuleSettings
	Settings map[string]interface{}
}

type ModuleSettings

type ModuleSettings struct {
	Settings map[string]interface{}
}

type Rpc

type Rpc struct {
	MaxCoroutine int // 模塊同時可以創建的最大協程數量默認是100
	RpcExpired   int // 遠程訪問最後期限值 單位秒[默認5秒] 這個值指定了在客戶端可以等待服務端多長時間來應答
}

Jump to

Keyboard shortcuts

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