headertype

package
v2.0.17 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type T added in v2.0.1

type T uint16
const (
	Ping T = 1 << iota
	Pong
	Verify //用于连接校验
	Req
	Res_Success
	Res_Err_Standard //标准错误 *errors.errorString *fmt.wrapError 目前知道的就这2个
	Res_Err_Custom   //自定义错误
	Msg              //MQ
	Chunks           //发送文件的时候

	Res = Res_Success | Res_Err_Standard | Res_Err_Custom | Pong //最底部

)

func (T) IsReq added in v2.0.1

func (this T) IsReq() bool

func (T) IsRes added in v2.0.1

func (this T) IsRes() bool

func (T) String added in v2.0.1

func (this T) String() string

Jump to

Keyboard shortcuts

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