configuration

package
v0.0.5-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	Database struct {
		Driver string `yaml:"driver" envconfig:"db_driver"`
		DSN    string `yaml:"dsn" envconfig:"db_dsn"`
	} `yaml:"database"`
	Tls struct {
		CertFile string `yaml:"certfile" envconfig:"tls_certfile"`
		KeyFile  string `yaml:"keyfile" envconfig:"tls_keyfile"`
	}
	Build struct {
		BasePath string `yaml:"basepath" envconfig:"basepath"`
	}
}

AppConfig contains the configuration, taken from a YAML configuration file

func Setup

func Setup(file string) (*AppConfig, bool, error)

type Settings

type Settings map[string]string

Jump to

Keyboard shortcuts

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