config

package
v0.0.0-...-d124ba8 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	RootDir          string
	Port             int
	Silent           bool
	Debug            bool
	EXIFPurgeGPS     bool
	CacheEnabled     bool
	CacheEviction    int
	CacheMaxSize     int
	CacheMaxItemSize int
}

Config Config structure for viper marshalling

var Current Config

Current Static variable, filled by viper

var Defaults Config = Config{
	RootDir:          getCwd(),
	Port:             8080,
	Debug:            false,
	Silent:           false,
	EXIFPurgeGPS:     true,
	CacheEnabled:     false,
	CacheEviction:    10,
	CacheMaxSize:     0,
	CacheMaxItemSize: 500,
}

Defaults default values

Jump to

Keyboard shortcuts

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