utils

package
v0.0.0-...-9421834 Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DefaultAddr           = ":9000"
	DefaultMaxCli         = 1000
	DefaultMaxWorker      = 1000
	DefaultMaxHandleQueue = 10000
	DefaultMaxSendQueue   = 10000
	DefaultSendTimeOut    = 1
	DefaultLogPath        = "./server.log"
	DefaultLogLevel       = 4
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	Addr           string
	MaxCli         uint32
	MaxWorker      uint32
	MaxHandleQueue uint32
	MaxSendQueue   uint32
	SendTimeOut    uint32
	LogPath        string
	LogLevel       uint32
}
var (
	HeadTemplate interfaces.IHead
	ConfInfo     Conf
)

func (*Conf) Load

func (c *Conf) Load(file string)

func (*Conf) SetDefalt

func (c *Conf) SetDefalt()

Jump to

Keyboard shortcuts

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