config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig() error

Types

type ConfigStruct

type ConfigStruct struct {
	Server struct {
		ServerName       string `yaml:"serverName"`
		IP               string `yaml:"IP"`
		Port             int    `yaml:"port"`
		IPVersion        string `yaml:"IPVersion"`
		MaxWorkerTaskLen uint32 `yaml:"maxWorkerTaskLen"`
		WorkerPoolSize   uint32 `yaml:"workerPoolSize"`
		MaxConnSize      uint32 `yaml:"maxConnSize"` // 服务器最大连接数
	} `yaml:"server"`
}
var Config ConfigStruct

Jump to

Keyboard shortcuts

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