msgpack

package
v2.0.0-alpha.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ContentType is the content type for MessagePack codec.
	ContentType = "application/vnd.msgpack"
)

Variables

View Source
var Default = Codec{}

Default is the default MessagePack 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) ContentType() string

func (Codec) Decode

func (c Codec) Decode(data []byte) (runtime.Value, error)

func (Codec) DecodeWith

func (c Codec) DecodeWith() encoding.DecoderConfigurer

func (Codec) Encode

func (c Codec) Encode(value runtime.Value) ([]byte, error)

func (Codec) EncodeWith

func (c Codec) EncodeWith() encoding.EncoderConfigurer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL