Add protobuf preparation objects, guarded by proto tag

This commit is contained in:
Clayton Coleman
2015-11-26 18:45:43 -05:00
parent e2679abdb8
commit 9fea762917
13 changed files with 594 additions and 48 deletions

View File

@@ -26,8 +26,10 @@ import (
// Time is a wrapper around time.Time which supports correct
// marshaling to YAML and JSON. Wrappers are provided for many
// of the factory methods that the time package offers.
//
// +protobuf.options.marshal=false
type Time struct {
time.Time
time.Time `protobuf:"Timestamp,1,req,name=time"`
}
// NewTime returns a wrapped instance of the provided time