Documentation ¶
Index ¶
Constants ¶
View Source
const ( Proto = "proto" Msgpack = "msgpack" Json = "json" Gencode = "gencode" )
Variables ¶
View Source
var ErrorMissingGencodeMethod = errors.New("missing gencode generate code")
View Source
var ErrorMissingProtoMessage = errors.New("missing proto message")
Functions ¶
func Register ¶
func Register(name string, serialization Serialization)
Types ¶
type Serialization ¶
type Serialization interface { Marshal(interface{}) ([]byte, error) Unmarshal([]byte, interface{}) error }
func Get ¶
func Get(name string) Serialization
Click to show internal directories.
Click to hide internal directories.