settings

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2022 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = &GlobalConfig{}
View Source
var Languages = []string{}
View Source
var MEDIA_DIR = "media"
View Source
var MODE = "default"
View Source
var REPO_NAME = "kago-assets"
View Source
var REPO_USER = "kamalshkeir"
View Source
var STATIC_DIR = "assets/static"
View Source
var Secret string
View Source
var TEMPLATE_DIR = "assets/templates"
View Source
var TranslationFolder = "translations"
View Source
var Translations = safemap.New[string, map[string]any]()

Functions

This section is empty.

Types

type GlobalConfig

type GlobalConfig struct {
	Host  string `env:"HOST|localhost"`
	Port  string `env:"PORT|9313"`
	Embed struct {
		Static    bool `env:"EMBED_STATIC|false"`
		Templates bool `env:"EMBED_TEMPLATES|false"`
	}
	Db struct {
		Name string `env:"DB_NAME|db"`
		Type string `env:"DB_TYPE|sqlite"`
		DSN  string `env:"DB_DSN|"`
	}
	Smtp struct {
		Email string `env:"SMTP_EMAIL|"`
		Pass  string `env:"SMTP_PASS|"`
		Host  string `env:"SMTP_HOST|"`
		Port  string `env:"SMTP_PORT|"`
	}
	Profiler   bool   `env:"PROFILER|false"`
	Docs       bool   `env:"DOCS|false"`
	Logs       bool   `env:"LOGS|false"`
	Monitoring bool   `env:"MONITORING|false"`
	Cert       string `env:"CERT|"`
	Key        string `env:"KEY|"`
	Domains    string `env:"DOMAINS|"`
}

Jump to

Keyboard shortcuts

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