config

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DebugKey    = "debug"
	UsernameKey = "username"
	PasswordKey = "password"
	ImagesKey   = "images"
)

These constants represent the keys used to setup the configuration. They are used to access its values using viper.Get.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Debug    bool
	Username string
	Password string
	Images   []map[string]interface{}
}

Config has the configurations for the application. It's initialized with ReadConfig().

func ReadConfig

func ReadConfig() (*Config, error)

ReadConfig wraps viper.ReadInConfig, but guarantees to setup Viper before reading the config file.

Jump to

Keyboard shortcuts

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