package
0.0.1
Repository: https://github.com/horm-database/common.git
Documentation: pkg.go.dev

# Packages

Package mapstructure exposes functionality to convert one arbitrary Go type into another, typically to convert a map[string]interface{} into a native Go structure.

# Functions

CloneContext copies the context and gets a context that retains the value and does not cancel, which is used for asynchronous processing by handler, leaving the original timeout control and retains the original context information.
CopyMsg copy src Msg to dst.
Message returns the message of context.
No description provided by the author
No description provided by the author
No description provided by the author
NewMessage create an empty message, and put it into ctx,.
No description provided by the author
RecycleMessage reset message, then put it to pool.

# Constants

No description provided by the author
total length of sign frame head.
version of encrypt frame.
total length of frame head.
encrypt frame.
FrameTypeNormal mainly used in a secure environment, such as a private LAN.
signature frame.
protocol type http.
protocol type rpc.
protocol version v1.
total length of sign frame head.
version of signature frame.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
max size of frame.

# Structs

EncryptFrameHead 加密帧.
FrameHead is head of the rpc frame.
Msg is the context information for a request.
SignFrameHead is head of signature of frame.