msgpack

package
v1.42.10 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgPackCodec

func NewMsgPackCodec() encoding.Codec

NewMsgPackCodec returns new ProtobufCodec

Types

type MsgPackCodec

type MsgPackCodec struct{}

MsgPackCodec is the msgpack impl of common.Codec interface

func (*MsgPackCodec) Marshal

func (p *MsgPackCodec) Marshal(v interface{}) ([]byte, error)

Marshal serialize interface @v to bytes

func (*MsgPackCodec) Name

func (p *MsgPackCodec) Name() string

func (*MsgPackCodec) Unmarshal

func (p *MsgPackCodec) Unmarshal(data []byte, v interface{}) error

Unmarshal deserialize @data to interface

Jump to

Keyboard shortcuts

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