codec

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: MIT Imports: 1 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 interface {
	Encode(interface{}) ([]byte, error)
	Decode([]byte, interface{}) error
}

Codec standards for an codec.

type MessagePackCodec

type MessagePackCodec struct {
}

MessagePackCodec represents a msg pack codec.

func (MessagePackCodec) Decode

func (codec MessagePackCodec) Decode(data []byte, value interface{}) error

Decode decodes a value.

func (MessagePackCodec) Encode

func (codec MessagePackCodec) Encode(value interface{}) ([]byte, error)

Encode encodes a value.

Jump to

Keyboard shortcuts

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