conf

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: AGPL-3.0 Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindProjectRoot

func FindProjectRoot() string

func GetPgxPoolFromEnv

func GetPgxPoolFromEnv() (*pgxpool.Pool, error)

func MustGetAdminAPIKeyFromEnv

func MustGetAdminAPIKeyFromEnv() []byte

func MustGetCookieDomainFromEnv

func MustGetCookieDomainFromEnv() string

func MustGetCookieSecureFromEnv

func MustGetCookieSecureFromEnv() bool

func MustGetFileStorageRootFromEnv

func MustGetFileStorageRootFromEnv() string

func MustGetFileStore

func MustGetFileStore(root string, subdir string) *filestore.Store

func MustGetJwtKeyFromEnv

func MustGetJwtKeyFromEnv() []byte

func MustGetNatsConnFromEnv

func MustGetNatsConnFromEnv(ctx context.Context) *nats.Conn

func MustGetPgxPoolFromEnv

func MustGetPgxPoolFromEnv() *pgxpool.Pool

func MustGetPublicAPIBaseURLFromEnv

func MustGetPublicAPIBaseURLFromEnv() string

func MustGetTestfileDownloadSigningKeyFromEnv

func MustGetTestfileDownloadSigningKeyFromEnv() []byte

func MustRunPostgresMigrationsFromEnv

func MustRunPostgresMigrationsFromEnv()

Types

type EmailConfig added in v1.1.0

type EmailConfig struct {
	Enabled           bool
	Host              string
	Port              int
	Username          string
	Password          string
	From              string
	FromName          string
	WebsiteBaseURL    string
	ResetTokenTTL     time.Duration
	VerifyTokenTTL    time.Duration
	PerUserCooldown   time.Duration
	GlobalHourlyLimit int
}

EmailConfig holds SMTP + transactional-email rate/TTL settings.

func MustGetEmailConfigFromEnv added in v1.1.0

func MustGetEmailConfigFromEnv() EmailConfig

Jump to

Keyboard shortcuts

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