Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUnsupportedMessage when register is called with a type // which cannot be en/decoded by the codec. ErrUnsupportedMessage = errors.New("codec: unsupported message") // ErrUnregisteredMessageType when a unregistered type is called // for marshalling or unmarshalling. ErrUnregisteredMessageType = errors.New("codec: unregistered message type") )
Functions ¶
func Marshal ¶
Marshal the value into bytes. The function returns the type name, the bytes, or an error.
func Register ¶
func Register(v interface{}) error
Register a type for marshalling and unmarshalling. The type must currently implement proto.Message.
Types ¶
This section is empty.
Directories
¶
Path | Synopsis |
---|---|
Package protomessage is a generated protocol buffer package.
|
Package protomessage is a generated protocol buffer package. |
Click to show internal directories.
Click to hide internal directories.