config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServConf

type ServConf struct {
	// rpc server listen port
	RpcPort            int   `yaml:"rpcPort,omitempty"`
	MaxRecvMsgSize     int   `yaml:"maxRecvMsgSize,omitempty"`
	ReadBufSize        int   `yaml:"readBufSize,omitempty"`
	WriteBufSize       int   `yaml:"writeBufSize,omitempty"`
	InitWindowSize     int32 `yaml:"initWindowSize,omitempty"`
	InitConnWindowSize int32 `yaml:"initConnWindowSize,omitempty"`
}

func GetDefServConf

func GetDefServConf() *ServConf

func LoadServConf

func LoadServConf(cfgFile string) (*ServConf, error)

Jump to

Keyboard shortcuts

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