config

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultBindAddr = "0.0.0.0"
View Source
const DefaultConfigFileName = "server-go.yaml"
View Source
const DefaultGrpcPort = 34322
View Source
const DefaultHttpPort = 80
View Source
const DefaultHttpsPort = 443
View Source
const DefaultKcpApiPort = 34322
View Source
const DefaultKcpPort = 34320
View Source
const DefaultLoginKey = "HLLdsa544&*S"
View Source
const DefaultRedisAddress = "127.0.0.1:6379"
View Source
const DefaultRedisNetwork = "tcp"
View Source
const DefaultTcpPort = 34320
View Source
const DefaultTlsPort = 34321
View Source
const DefaultUdpApiPort = 34321

Variables

View Source
var DefaultConfigFilePath = fmt.Sprintf("./%s", DefaultConfigFileName)

Functions

func GetConfig

func GetConfig(configFilePath string) (configMode models.ServerConfig, err error)

从配置文件路径解析配置文件的内容

func InitConfigFile added in v1.1.53

func InitConfigFile()

func LoadConfig added in v1.1.27

func LoadConfig() (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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