config

package
v0.0.0-...-51a7bb6 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: MIT Imports: 3 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 {
	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

Jump to

Keyboard shortcuts

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