Documentation
¶
Index ¶
- type Codec
- func (c *Codec) DecodeTuple(key, value []byte) (*core.Tuple, error)
- func (c *Codec) DecodeURI(data []byte) (*core.URI, error)
- func (c *Codec) DecodeValue(data []byte) (*core.Value, error)
- func (c *Codec) EncodeTuple(tuple *core.Tuple) ([]byte, []byte, error)
- func (c *Codec) EncodeURI(uri *core.URI) ([]byte, error)
- func (c *Codec) EncodeValue(value *core.Value) ([]byte, error)
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 (*Codec) DecodeTuple ¶
DecodeTuple decodes a key-value pair to a core.Tuple.
func (*Codec) DecodeValue ¶
DecodeValue decodes a []byte to a core.Value.
func (*Codec) EncodeTuple ¶
EncodeTuple encodes a core.Tuple to key-value pair.
func (*Codec) EncodeValue ¶
EncodeValue encodes a core.Value to []byte.
Click to show internal directories.
Click to hide internal directories.