config

package
v0.0.0-...-945dfcb Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	DB DatabaseEnv `yaml:"database,omitempty"`
}

Configuration holds application configuration data

func Load

func Load(path string) (*Configuration, error)

Load loads the configuration file from the given path

type Database

type Database struct {
	PSN            string `yaml:"psn,omitempty"`
	LogQueries     bool   `yaml:"log_queries,omitempty"`
	TimeoutSeconds int    `yaml:"timeout_seconds,omitempty"`
}

Database holds data necessery for database configuration

type DatabaseEnv

type DatabaseEnv struct {
	Dev  Database `yaml:"dev,omitempty"`
	Test Database `yaml:"test,omitempty"`
}

DatabaseEnv holds dev and test database data

Jump to

Keyboard shortcuts

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