Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Codec ¶
type Codec interface { // Encode encode message into the out buffer or write directly to the underlying connection. Encode(message any, out *buf.ByteBuf, conn io.Writer) error // Decode decode message from the bytes buffer, returns false if there is not enough data. Decode(in *buf.ByteBuf) (message any, complete bool, err error) }
Codec message codec, used to encode message to bytes or decode bytes to message.
Click to show internal directories.
Click to hide internal directories.