Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Server struct { Port string `yaml:"port" envconfig:"SERVER_PORT"` Host string `yaml:"host" envconfig:"SERVER_HOST"` SessionHashKey string `yaml:"session_hash_key" envconfig:"SESSION_HASH_KEY"` SessionBlockKey string `yaml:"session_block_key" envconfig:"SESSION_BLOCK_KEY"` } `yaml:"server"` Database struct { Username string `yaml:"user" envconfig:"DB_USERNAME"` Password string `yaml:"pass" envconfig:"DB_PASSWORD"` File string `yaml:"file" envconfig:"DB_FILE"` } `yaml:"database"` Frontend struct { Admin string `yaml:"admin" envconfig:"USERNAME"` Password string `yaml:"pass" envconfig:"PASSWORD"` SiteName string `yaml:"site_name" envconfig:"FILE"` } `yaml:"frontend"` }
var Cfg Config
Click to show internal directories.
Click to hide internal directories.