config

package
v0.0.0-...-f70499c Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// The App Contains configuration for this application
	App AppConfig

	// Database contains configuration for the database
	Database DatabaseConfig

	Mail SMTPConfig

	Logger zerolog.Logger
)

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	Port      int
	Host      string
	PublicURL string
	InDevMode bool
	Version   string
	Location  *time.Location
}

AppConfig is a struct for storing configuration for the application

type DatabaseConfig

type DatabaseConfig struct {
	Driver   string
	Hostname string
	Name     string
	Username string
	Password string
	Port     int
}

DatabaseConfig stores configuration for a specific database connection

type SMTPConfig

type SMTPConfig struct {
	Enabled bool
	Host    string
	Port    string
}

Jump to

Keyboard shortcuts

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