config

package
v0.0.0-...-2502259 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const AppName = "shortesturl"

The AppName that identifies the application

Variables

This section is empty.

Functions

This section is empty.

Types

type Values

type Values struct {
	Environment          string
	HttpHost             string
	HttpPort             int
	HttpScheme           string
	IsDevelopment        bool
	RedisHost            string
	RedisPort            string
	UrlLength            int
	UrlExpirationInHours time.Duration
	Version              string
}

A Values struct that holds all the loaded configuration variables for the app

func New

func New(configName string, configPaths ...string) (*Values, error)

New loads config variables from file paths

Jump to

Keyboard shortcuts

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