config

package
v0.0.0-...-d6d2609 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: BSD-3-Clause Imports: 4 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 {
	Debug bool
	File  ini.File

	DbConnString string
	DbMaxConn    int

	ListenAddr string
	ListenPort int
	Timeout    int

	EmailSvc   string
	StorageSvc string

	StaticURL string
	MediaURL  string

	AdminEmail       string
	EmailAdminErrors bool
	DefaultFromEmail string
	DefaultLang      string
	Environment      string

	Scheme string
	Domain string
}

Config is the base config structure for the application

func LoadConfig

func LoadConfig(fname string) (*Config, error)

LoadConfig loads the global app config

func (*Config) BaseURI

func (c *Config) BaseURI() string

BaseURI builds the scheme + domain

Jump to

Keyboard shortcuts

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