common

package
v0.0.0-...-119db99 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger *zap.Logger

Functions

func CheckErr

func CheckErr(err error)

func LoadConfig

func LoadConfig() error

func NewLogger

func NewLogger()

Types

type FlagConfig

type FlagConfig struct {
	ConfigFile string `default:"config.json"`
}

type ServerConfig

type ServerConfig struct {
	ForwardAddr string //转发地址
	RecvPort    string `default:":9100"` //接收端口
	SendEnabled bool   //发
	RecvEnabled bool   //收
	IdleTimeout int    //客户端空闲连接超时
	RecvTimeout int    //服务端连接接收超时
	PrintStat   bool   //打印状态
	Debug       bool
	LogLevel    int
	AccessLog   string
}
var Config *ServerConfig

Jump to

Keyboard shortcuts

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