config

package
Version: v0.0.0-...-736bee3 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: Apache-2.0 Imports: 8 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
}

Source Files

Jump to

Keyboard shortcuts

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