config

package
v0.0.0-...-73b1491 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnv

func GetEnv(env, defaultValue string) string

func GetEnvOrPanic

func GetEnvOrPanic(env string) string

Types

type EnvVars

type EnvVars struct {
	PRODUCTION       bool
	JWT_SECRET       []byte
	COOKIE_HASH_KEY  []byte
	COOKIE_BLOCK_KEY []byte
	PORT             string
	S3_BUCKET        string
}

func LoadEnv

func LoadEnv() (*EnvVars, error)

Jump to

Keyboard shortcuts

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