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"
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|"` }
Click to show internal directories.
Click to hide internal directories.