utils

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HTTP_PORT     = os.Getenv("HTTP_PORT")
	ADMIN_KEY     = GetEnvOrFail("ADMIN_KEY")
	CACHE_TTL int = 0
)

Functions

func CheckFlags

func CheckFlags()

func GetEnvOrDefault

func GetEnvOrDefault(env, defaultVal string) string

func GetEnvOrFail

func GetEnvOrFail(env string) string

func HandleTestError

func HandleTestError(t *testing.T, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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