config

package
v0.0.0-...-7eb25be Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Development      bool   `envconfig:"DEVELOPMENT" default:"false"`
	DatabaseURL      string `envconfig:"DATABASE_URL" default:"diploid.db"`
	BindAddress      string `default:":3000"`
	JWTSecret        string `envconfig:"JWT_SECRET"`
	CorsAllowOrigins string `envconfig:"CORS_ALLOW_ORIGINS" default:"http://localhost:3000,http://localhost:4321"`
}

func LoadConfig

func LoadConfig() *Config

Jump to

Keyboard shortcuts

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