msgpack

package module
v0.0.0-...-8916d2e Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Codec

type Codec struct{}

Codec implements the KVCodec interface using MessagePack encoding.

func New

func New() *Codec

New creates a new MessagePack codec.

func (*Codec) DecodeTuple

func (c *Codec) DecodeTuple(key, value []byte) (*core.Tuple, error)

DecodeTuple decodes a key-value pair to a core.Tuple.

func (*Codec) DecodeURI

func (c *Codec) DecodeURI(data []byte) (*core.URI, error)

DecodeURI decodes a []byte to a core.URI.

func (*Codec) DecodeValue

func (c *Codec) DecodeValue(data []byte) (*core.Value, error)

DecodeValue decodes a []byte to a core.Value.

func (*Codec) EncodeTuple

func (c *Codec) EncodeTuple(tuple *core.Tuple) ([]byte, []byte, error)

EncodeTuple encodes a core.Tuple to key-value pair.

func (*Codec) EncodeURI

func (c *Codec) EncodeURI(uri *core.URI) ([]byte, error)

EncodeURI encodes a core.URI to []byte.

func (*Codec) EncodeValue

func (c *Codec) EncodeValue(value *core.Value) ([]byte, error)

EncodeValue encodes a core.Value to []byte.

Jump to

Keyboard shortcuts

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