config

package
v0.0.0-...-f9f6af2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = config{}

Functions

func Environment

func Environment() string

func GetTemplateDirectory

func GetTemplateDirectory() (string, error)

func LoadConfig

func LoadConfig(path string) error

func LoadDatabaseConfig

func LoadDatabaseConfig(configPath string) error

func SetEnvironment

func SetEnvironment(env string)

Types

type DatabaseConfig

type DatabaseConfig struct {
	Name     string
	User     string
	Password string
	Host     string
	Port     uint
}

Jump to

Keyboard shortcuts

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