Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeZigZagInt ¶
DecodeZigZagInt decodes a protobuffer variable integer (zigzag format).
func DecodeZigZagUint ¶
DecodeZigZagUint decodes a protobuffer variable integer (zigzag format) and return it as an uint64 umber.
func Int64SecondsToTime ¶
Int64SecondsToTime converts utcTimeSeconds (int64) to time.Time. utcTimeSeconds is a value in seconds.
utcTimeSeconds is a standard unix timestamp.
Unix returns the local Time corresponding to the given Unix time, sec seconds and nsec nanoseconds since January 1, 1970 UTC. It is valid to pass nsec outside the range [0, 999999999]. Not all sec values have a corresponding time value. One such value is 1<<63-1 (the largest int64 value).
func Int64ToTime ¶
Int64ToTime converts utcTimeNanoSeconds (int64) to time.Time. utcTimeNanoSeconds is a value in nanoseconds.
Types ¶
This section is empty.