config

package
v0.0.0-...-4d8659c Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Title         string            // Title of the application
	SecretKey     string            // Secret key for JWT signing
	DbFilePath    string            // Path to the SQLite database file
	ExpirySeconds int               // Token expiry time in seconds
	Port          string            // Port on which the server runs
	EndpointUrl   string            // URL of the server endpoint
	AuthTimeOut   int               // Authentication timeout in seconds
	MainTemplate  string            // Main HTML template content
	Loglevel      logger.Loglevel   // Log level for the application
	SMTPConfig    models.SmtpConfig // SMTP configuration for sending emails
	AdminUserName string            // Default admin username
)

Configuration variables

View Source
var DefaultString = utils.DefaultStringFunc

Functions

func LoadConfig

func LoadConfig()

LoadConfig loads the configuration settings from environment variables and .env file.

func StrToInt

func StrToInt(v string) int

StrToInt converts a string to an integer using utility functions.

Types

This section is empty.

Jump to

Keyboard shortcuts

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