config

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const JWTUserKey = "jwt-user"

JWTUserKey is key for JWT claims stored in request context.

Variables

This section is empty.

Functions

func DefaultDurationEnv added in v0.3.3

func DefaultDurationEnv(key string, fallback time.Duration) time.Duration

DefaultIntEnv returns content of shell variable assigned to given key. If result is empty or parsing process failed, returns fallback value.

func DefaultEnv

func DefaultEnv(key, fallback string) string

DefaultEnv returns content of shell variable assigned to given key. If result is empty, returns fallback value.

func Env

func Env() *models.Config

Env returns pointer to models.Config which is parsed from environmental variables. Cannot be nil. Unset variables will be

Types

This section is empty.

Jump to

Keyboard shortcuts

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