Documentation
¶
Overview ¶
Package msgpack provides MessagePack encoding helpers and adapters used by go-service.
This package integrates MessagePack encoding/decoding behind the go-service encoding abstraction.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Encoder ¶
type Encoder struct{}
Encoder implements MessagePack encoding and decoding.
func (*Encoder) Decode ¶
Decode reads one MessagePack value from r and decodes it into v.
In most cases v should be a pointer to the destination value (for example *MyStruct). Decode rejects unknown destination fields unless github.com/alexfalkowski/go-service/v2/encoding/codec.WithDiscardUnknown is supplied. It also rejects trailing encoded values or malformed trailing data.
Click to show internal directories.
Click to hide internal directories.