common

package
v0.0.0-...-67a64fa Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnvAsBool

func GetEnvAsBool(key string) bool

GetEnvAsBool returns the value of the environment variable named by the key as a bool or false if it is not set.

func GetEnvAsBoolX

func GetEnvAsBoolX(key string) bool

GetEnvAsBoolX returns the value of the environment variable named by the key as a bool and panics if it is not set.

func GetEnvX

func GetEnvX(key string) string

GetEnvX returns the value of the environment variable named by the key or panics if it is not set.

func GetJson

func GetJson(url string, retries int, target interface{}) (int, error)

func ParseDuration

func ParseDuration(input string) (*duration.Duration, error)

func ParseTime

func ParseTime(input string) (*timestamppb.Timestamp, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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