Documentation ¶
Overview ¶
Package pbtypes contains protocol buffer types (Timestamp, Void, etc.) and related helpers.
Package pbtypes is a generated protocol buffer package.
It is generated from these files:
timestamp.proto void.proto
It has these top-level messages:
Timestamp
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Timestamp ¶
type Timestamp struct { // Represents seconds of UTC time since Unix epoch // 1970-01-01T00:00:00Z. Must be from from 0001-01-01T00:00:00Z to // 9999-12-31T23:59:59Z inclusive. Seconds int64 `protobuf:"varint,1,opt,name=seconds" json:"seconds,omitempty"` // Non-negative fractions of a second at nanosecond resolution. Negative // second values with fractions must still have non-negative nanos values // that count forward in time. Must be from 0 to 999,999,999 // inclusive. Nanos int32 `protobuf:"varint,2,opt,name=nanos" json:"nanos,omitempty"` }
func NewTimestamp ¶
NewTimestamp creates a new Timestamp from a time.Time.
func (*Timestamp) ProtoMessage ¶
func (*Timestamp) ProtoMessage()
type Void ¶
type Void struct { }
Void is an empty type used as the protobuf RPC method arg or result for methods that take no parameters or yield no results, respectively.
func (*Void) ProtoMessage ¶
func (*Void) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.