config

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Scheme                              string
	HostName                            string
	DBHost                              string
	DBUser                              string
	DBPassword                          string
	DBName                              string
	DBPort                              int
	Stage                               string
	APISecret                           string
	TokenLifespan                       int
	AccessTokenMinutes                  int
	RefreshTokenDays                    int
	RefreshTokenRememberMeDays          int
	RefreshTokenCleanupIntervalHours    int
	RefreshRateLimitRequests            int
	RefreshRateLimitWindowMinutes       int
	ResendConfirmRateLimitRequests      int
	ResendConfirmRateLimitWindowMinutes int
	MailServerConfig                    MailServer
	SeedOnStartup                       bool
	FeatureItemPicturesUpload           bool
)

Functions

func EnvInit

func EnvInit(envFilePath string) error

Types

type Config added in v0.4.2

type Config struct {
	Scheme                              string
	HostName                            string
	DBConfig                            DBConfig
	Stage                               string
	APISecret                           string
	TokenLifespan                       int
	AccessTokenMinutes                  int
	RefreshTokenDays                    int
	RefreshTokenRememberMeDays          int
	RefreshTokenCleanupIntervalHours    int
	RefreshRateLimitRequests            int
	RefreshRateLimitWindowMinutes       int
	ResendConfirmRateLimitRequests      int
	ResendConfirmRateLimitWindowMinutes int
	MailServer                          MailServer
	SeedOnStartup                       bool
	FeatureItemPicturesUpload           bool
}

type DBConfig added in v0.4.2

type DBConfig struct {
	DBHost     string
	DBPort     int
	DBUser     string
	DBPassword string
	DBName     string
}

type MailServer added in v0.3.0

type MailServer struct {
	MailServer   string `json:"mail_server"`
	MailPort     int    `json:"mail_port"`
	MailIdentity string `json:"mail_identity"`
	MailUsername string `json:"mail_username"`
	MailPassword string `json:"mail_password"`
}

MailServer contains SMTP configuration

Jump to

Keyboard shortcuts

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