Documentation ¶
Index ¶
- func DurationFromProto(duration *google_duration.Duration) time.Duration
- func DurationToProto(d time.Duration) *google_duration.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 ¶
func DurationFromProto(duration *google_duration.Duration) time.Duration
DurationFromProto converts a protobuf Duration to a go Duration.
func DurationToProto ¶
func DurationToProto(d time.Duration) *google_duration.Duration
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 ¶
func TimeToTimestamp(t time.Time) *google_protobuf.Timestamp
TimeToTimestamp converts a go Time to a protobuf Timestamp.
func TimestampLess ¶
func TimestampLess(i *google_protobuf.Timestamp, j *google_protobuf.Timestamp) bool
TimestampLess returns true if i is before j.
func TimestampToTime ¶
func TimestampToTime(timestamp *google_protobuf.Timestamp) time.Time
TimestampToTime converts a protobuf Timestamp to a go Time.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.