scalars

package
v0.0.0-...-fb8c843 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2025 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertActionStatusIntToString

func ConvertActionStatusIntToString(i int32) string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL