Documentation
¶
Index ¶
Constants ¶
View Source
const ( JSONCodecName = "application/json" ProtoCodecName = "application/protobuf" XMLCodecName = "application/xml" )
Variables ¶
View Source
var NotProtoMessage = errors.New("not proto message")
View Source
var Register = register{/* contains filtered or unexported fields */}
Functions ¶
This section is empty.
Types ¶
type ProtobufCodec ¶
type ProtobufCodec struct { }
func (*ProtobufCodec) Decode ¶
func (c *ProtobufCodec) Decode(data []byte, v interface{}) error
func (*ProtobufCodec) Encode ¶
func (c *ProtobufCodec) Encode(v interface{}) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.