config

package
v0.0.0-...-6bca096 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 5 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 {
	Host        string `env:"HOST,default=0.0.0.0"`
	Port        string `env:"PORT,default=8080"`
	GinMode     string `env:"GIN_MODE,default=debug"`
	DatabaseURL string `env:"DATABASE_URL,required"`
	AssetHost   string `env:"ASSET_HOST"`
	SentryDSN   string `env:"SENTRY_DSN"`
	JQVer       string

	Logger *slog.Logger
}

func Load

func Load() (*Config, error)

func (*Config) IsProd

func (c *Config) IsProd() bool

Jump to

Keyboard shortcuts

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