config

package
v0.0.0-...-e0bdc34 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package config implements application configuration storage. Parameters are loaded according to specified running mode (-mode can be debug, test or release).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Instance

func Instance() *viper.Viper

Returns config instance.

func Load

func Load(mode string) error

Loads configuration according to specified Gin mode.

func LoadFrom

func LoadFrom(mode string, configPaths []string) error

Types

type ConfigNotLoadedError

type ConfigNotLoadedError struct {
	// contains filtered or unexported fields
}

ConfigNotFoundError is returned by Load if it fails.

func (ConfigNotLoadedError) Error

func (err ConfigNotLoadedError) Error() string

ConfigNotLoadedError.Error returns the formatted error.

Jump to

Keyboard shortcuts

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