package
4.0.4
Repository: https://github.com/werunclub/rpcx.git
Documentation: pkg.go.dev

# Functions

FreeMsg puts a msg into the pool.
GetPooledMsg gets a pooled message.
NewMessage creates an empty message.
Read reads a message from r.

# Constants

Error indicates some errors occur.
Gzip uses gzip compression.
JSON for payload.
MsgPack for payload.
None does not compress.
Normal is normal requests and responses.
ProtoBuffer for payload.
Request is message type of request.
Response is message type of response.
SerializeNone uses raw []byte and don't serialize/deserialize.
ServiceError contains error info of service invocation.

# Variables

ErrMessageToLong message is too long.
ErrMetaKVMissing some keys or values are mssing.
MaxMessageLength is the max length of a message.

# Structs

Message is the generic type of Request and Response.

# Type aliases

CompressType defines decompression type.
Header is the first part of Message and has fixed size.
MessageStatusType is status of messages.
MessageType is message type of requests and resposnes.
SerializeType defines serialization type of payload.