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
View Source
const IoTManagerAddr = "api.iot-manager.iothub.cloud:50051"
Variables ¶
View Source
var ConfigMode models.ServerConfig
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.
Click to show internal directories.
Click to hide internal directories.