Documentation
¶
Index ¶
- func ConvertActionStatusIntToString(i int32) string
- func ConvertActionStatusToInt32(status kartepb.Action_Status) int32
- func ConvertInt32ToActionStatus(i int32) kartepb.Action_Status
- func ConvertTimeToTimestampPtr(t time.Time) *timestamppb.Timestamp
- func ConvertTimestampPtrToString(timestamp *timestamppb.Timestamp) string
- func ConvertTimestampPtrToTime(timestamp *timestamppb.Timestamp) time.Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertActionStatusIntToString ¶
ConvertActionStatusIntToString takes an int32 and converts it to the string representation of an action status. If this function is passed a integer that is out of range, the results are undefined.
func ConvertActionStatusToInt32 ¶
func ConvertActionStatusToInt32(status kartepb.Action_Status) int32
ConvertActionStatusToInt32 takes an action status and converts it to an int32. If this function is passed an invalid kartepb.Action_status, the results are undefined.
func ConvertInt32ToActionStatus ¶
func ConvertInt32ToActionStatus(i int32) kartepb.Action_Status
ConvertActionStatusToInt32 takes an int32 and converts it to an action status. If this function is passed a integer that is out of range, the results are undefined.
func ConvertTimeToTimestampPtr ¶
func ConvertTimeToTimestampPtr(t time.Time) *timestamppb.Timestamp
ConvertTimeToTimestampPtr takes a time value and converts it to a timestamp proto value. It sends the zero value for time.Time to a nil pointer.
func ConvertTimestampPtrToString ¶
func ConvertTimestampPtrToString(timestamp *timestamppb.Timestamp) string
func ConvertTimestampPtrToTime ¶
func ConvertTimestampPtrToTime(timestamp *timestamppb.Timestamp) time.Time
ConvertTimestampPtrToTime takes a pointer to a timestamp proto value and converts it to a Go time.Time value, sending nil to zero.
Types ¶
This section is empty.