msgpack_codec

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Name = "msgpack"

Functions

This section is empty.

Types

type MsgpackCodec

type MsgpackCodec struct{}

MsgpackCodec uses messagepack marshaler and unmarshaler.

func (MsgpackCodec) Decode

func (c MsgpackCodec) Decode(data []byte, i interface{}) error

Decode decodes an object from slice of bytes.

func (MsgpackCodec) Encode

func (c MsgpackCodec) Encode(i interface{}) ([]byte, error)

Encode encodes an object into slice of bytes.

func (MsgpackCodec) Name

func (c MsgpackCodec) Name() string

Jump to

Keyboard shortcuts

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