config

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: GPL-3.0 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 {
	AppName    string
	AppTagline string
	AppEnv     string
	AppURL     string
	Host       string
	Port       string

	DBDriver     string
	DBConnection string

	JWTSecret            string
	JWTExpiry            time.Duration
	TokenMagicLinkExpiry time.Duration

	MailerSMTPHost  string
	MailerSMTPPort  int
	MailerIMAPHost  string
	MailerIMAPPort  int
	MailerUsername  string
	MailerPassword  string
	MailerEmailFrom string

	SupportEmail string

	GoogleMeasuringID string

	Version string
}

func Load

func Load(version string) *Config

func (*Config) IsProduction

func (cfg *Config) IsProduction() bool

func (*Config) Sanitized

func (c *Config) Sanitized() *Config

Sanitized returns a copy of the config with only public/safe fields. All secrets, credentials, and sensitive data are excluded. Safe to expose in ctx, templates and client-facing contexts.

Jump to

Keyboard shortcuts

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