config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DebugKey            = "debug"
	CacheLimitKey       = "cache_limit"
	CacheTTLKey         = "cache_ttl"
	APIHostKey          = "api_host"
	ServerHostKey       = "server_host"
	ServerPortKey       = "server_port"
	DownloadEndpointKey = "endpoints.download"
	ListEndpointKey     = "endpoints.list"
	MD5EndpointKey      = "endpoints.md5"

	DefaultDebugFlag        = false
	DefaultCacheLimit       = 10000
	DefaultCacheTTL         = "10m"
	DefaultServerHost       = "127.0.0.1"
	DefaultServerPort       = "8080"
	DefaultDLEndpointPath   = "/download"
	DefaultListEndpointPath = "/list"
	DefaultMD5EndpointPath  = "/md5"
)

Config keys and default values

Variables

This section is empty.

Functions

func New

func New(name, prefix string) *viper.Viper

New returns new instance of Viper config

Types

This section is empty.

Jump to

Keyboard shortcuts

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