Documentation
¶
Index ¶
- Constants
- Variables
- type Codec
- func (Codec) ContentType() string
- func (c Codec) Decode(ctx context.Context, src io.Reader) (runtime.Value, error)
- func (c Codec) DecodeWith() encoding.DecoderConfigurer
- func (c Codec) Encode(ctx context.Context, dst io.Writer, value runtime.Value) error
- func (c Codec) EncodeWith() encoding.EncoderConfigurer
Constants ¶
View Source
const (
// ContentType is the content type for MessagePack codec.
ContentType = "application/vnd.msgpack"
)
Variables ¶
View Source
var ( // Default is the default MessagePack codec. Default = Codec{} )
Functions ¶
This section is empty.
Types ¶
type Codec ¶
type Codec struct {
// contains filtered or unexported fields
}
Codec encodes and decodes runtime values as MessagePack.
func (Codec) ContentType ¶
func (Codec) DecodeWith ¶
func (c Codec) DecodeWith() encoding.DecoderConfigurer
func (Codec) EncodeWith ¶
func (c Codec) EncodeWith() encoding.EncoderConfigurer
Click to show internal directories.
Click to hide internal directories.