Documentation ¶
Overview ¶
Package msgpack provides a msgpack codec for encoding and decoding
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func S2Decompress ¶
S2Decompress decompresses a byte array using s2.
Types ¶
type CompressFunc ¶
CompressFunc is a function that compresses a byte array.
type DecompressFunc ¶
DecompressFunc is a function that decompresses a byte array.
type MarshalFunc ¶
MarshalFunc is a function that marshals a value into a byte array.
type MsgPack ¶
type MsgPack struct {
// contains filtered or unexported fields
}
MsgPack is a msgpack codec.
type OptionFunc ¶
type OptionFunc func(*MsgPack)
OptionFunc is a function that configures a MsgPack.
func WithCompressFunc ¶
func WithCompressFunc(fnc CompressFunc, fnd DecompressFunc) OptionFunc
WithCompressFunc sets the compress function.
func WithMarshalFunc ¶
func WithMarshalFunc(fnm MarshalFunc, fnu UnmarshalFunc) OptionFunc
WithMarshalFunc sets the marshal function.
type UnmarshalFunc ¶
UnmarshalFunc is a function that unmarshals a byte array into a value.
Click to show internal directories.
Click to hide internal directories.