codec

package
v0.0.0-...-4ad104f Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SerializeType

type SerializeType byte
const (
	SerializeTypeNone SerializeType = iota
	SerializeTypeMsgpack
	SerializeTypeJson
)

type Serializer

type Serializer interface {
	Encode(v interface{}) ([]byte, error)
	Decode(data []byte, v interface{}) error
}

func GetSerializer

func GetSerializer(styp SerializeType) Serializer

Jump to

Keyboard shortcuts

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