Documentation ¶
Index ¶
- func DurationFromProto(duration *google_protobuf.Duration) time.Duration
- func DurationToProto(d time.Duration) *google_protobuf.Duration
- func Now() *google_protobuf.Timestamp
- func TimeToTimestamp(t time.Time) *google_protobuf.Timestamp
- func TimestampLess(i *google_protobuf.Timestamp, j *google_protobuf.Timestamp) bool
- func TimestampToTime(timestamp *google_protobuf.Timestamp) time.Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DurationFromProto ¶
DurationFromProto converts a protobuf Duration to a go Duration.
func DurationToProto ¶
DurationToProto converts a go Duration to a protobuf Duration.
func Now ¶
func Now() *google_protobuf.Timestamp
Now returns the current time as a protobuf Timestamp.
func TimeToTimestamp ¶
TimeToTimestamp converts a go Time to a protobuf Timestamp.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.