config

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Get the desired configuration value.
	Get struct {
		Debug       bool   `yaml:"debug"`
		Folder      string `yaml:"folder"`
		Host        string `yaml:"host"`
		Port        uint16 `yaml:"port"`
		ShowListing bool   `yaml:"show-listing"`
		TLSCert     string `yaml:"tls-cert"`
		TLSKey      string `yaml:"tls-key"`
		URLPrefix   string `yaml:"url-prefix"`
	}
)

Functions

func Load

func Load(filename string) (err error)

Load the configuration file.

func Log added in v1.4.0

func Log()

Log the current configuration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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