util

package
v0.0.0-...-6cc63a5 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertFloat64ToInt64

func ConvertFloat64ToInt64(value interface{}) (int64, bool)

ConvertFloat64ToInt64 default interface type of float64 needs to be converted to expected int64 type required by proto

func DereferenceBool

func DereferenceBool(ref *bool, default_ bool) bool

func DereferenceInt

func DereferenceInt(ref *int64, default_ int64) int64

func DereferenceString

func DereferenceString(ref *string, default_ string) string

func DereferenceUInt

func DereferenceUInt(ref *uint64, default_ uint64) uint64

func GetS2ID

func GetS2ID(lat float64, long float64, level int) (s2.CellID, error)

func Hash

func Hash(s string) uint32

func RetrieveDayOfWeek

func RetrieveDayOfWeek(tz time.Location) int64

func RetrieveHourOfDay

func RetrieveHourOfDay(tz time.Location) int64

func RetrieveTimezone

func RetrieveTimezone(tz interface{}) (*time.Location, error)

func ValidateFloat64Type

func ValidateFloat64Type(value interface{}, name string) error

func ValidateLatLong

func ValidateLatLong(filterParams map[string]interface{}) error

func WaitFor

func WaitFor(condition func() bool, waitFor time.Duration, tick time.Duration) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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