grpctool

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeZigZagInt

func DecodeZigZagInt(b []byte) (r int64, ate int)

DecodeZigZagInt decodes a protobuffer variable integer (zigzag format).

func DecodeZigZagUint

func DecodeZigZagUint(b []byte) (r uint64, ate int)

DecodeZigZagUint decodes a protobuffer variable integer (zigzag format) and return it as an uint64 umber.

func Int64SecondsToTime

func Int64SecondsToTime(utcTimeSeconds int64) (tm time.Time)

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

func Int64ToTime(utcTimeNanoSeconds int64) (tm time.Time)

Int64ToTime converts utcTimeNanoSeconds (int64) to time.Time. utcTimeNanoSeconds is a value in nanoseconds.

Types

This section is empty.

Jump to

Keyboard shortcuts

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