config

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: MIT Imports: 4 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 {
	// Database
	DatabaseURL        string
	RedisAddr          string
	RedisPassword      string
	PasetoSecretKey    string
	SMTPHost           string
	SMTPUser           string
	SMTPPassword       string
	EmailFrom          string
	HTTPPort           string
	LogLevel           string
	LogFormat          string
	SysadminEmail      string
	SysadminTenantName string

	// Time/Numeric
	ReadTimeout     time.Duration
	WriteTimeout    time.Duration
	ShutdownTimeout time.Duration
	TokenTTL        time.Duration
	SMTPPort        int
}

func Load

func Load() *Config

Load reads environment variables and returns a populated Config. It panics if any required variable is missing or malformed.

Jump to

Keyboard shortcuts

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