settings

package
v0.0.0-...-0731e76 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2019 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MySQL = iota
	SQLite
)

Variables

View Source
var (
	WorkingDir string
	ConfigPath = "config.toml"
	Config     Configuration
)

Functions

func LoadConfig

func LoadConfig()

Types

type Configuration

type Configuration struct {
	SitePort        string
	DevMode         bool
	UniEmailDomain  string
	EmailAddress    string
	EmailPassword   string
	EmailSMTPServer string
	DBConfig        DatabaseConfiguration
}

type DBType

type DBType int

type DatabaseConfiguration

type DatabaseConfiguration struct {
	Type     DBType
	Host     string
	Name     string
	User     string
	Password string
	Path     string
}

Jump to

Keyboard shortcuts

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