msc

package module
v0.0.0-...-a86be45 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProjectName       = "msc_server"
	DefaultConfigPath = "config/"
)
View Source
const (
	ErrorsSessionThreshReached   = "Reached total sessions threshold"
	ErrorsNoEffectiveAction      = "No effective action more than %v"
	ErrorsNoneActiveTestResponse = "None response active test more than 3 times"
	ErrorsDecodePacketBody       = "Decode packet body error"
	ErrorsIllegalPacketLength    = "Illegal packet length %d"
	ErrorsIllegalCommand         = "Illegal command %0x"
	ErrorsSubmitFlowControl      = "Submit message flow control"
)

Variables

View Source
var (
	BasePath  = ""
	ConfigYml yaml_config.YmlConfig
)

Functions

func FindAuthConf

func FindAuthConf(isp, clientId string) (ac *codec.AuthConf)

func New

func New(name string, opts ...log.Option) *zap.Logger

New 创建一个自定义日志: name 对应 config.yaml 配置文件中的配置中间名(如果找不到,会采用默认配置); opts 为日志增加可选项。

func SeqInit

func SeqInit()

func StatChan

func StatChan() <-chan struct{}

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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