Add an experimental protobuf serializer

Provide a core protobuf serializer that can either write objects with
an envelope (a 4 byte prefix and a runtime.Object) or raw to a byte
array.
This commit is contained in:
Clayton Coleman
2016-01-30 17:55:08 -05:00
parent 5e159695d9
commit f2139b186c
9 changed files with 781 additions and 177 deletions

View File

@@ -38,8 +38,6 @@ type TypeMeta struct {
const (
ContentTypeJSON string = "application/json"
// TODO: Fix the value.
ContentTypeProtobuf string = "application/protobuf"
)
// RawExtension is used to hold extensions in external versions.