config

package
v0.0.0-...-e829bcd Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Dir      = kingpin.Arg("dir", "Directory path(s) to look for files").Default("./").ExistingFilesOrDirs()
	Port     = kingpin.Flag("port", "Port number to host the server").Short('p').Default("8080").Int()
	Restrict = kingpin.Flag("restrict", "Enforce PAM authentication (single level)").Short('r').Bool()
	Acl      = kingpin.Flag("acl", "enable Access Control List with users in the provided file").Short('a').ExistingFile()
	Cron     = kingpin.Flag("cron", "configure cron for re-indexing files, Supported durations:[h -> hours, d -> days]").Short('t').Default("0h").String()
	Secure   = kingpin.Flag("secure", "Run Server with TLS").Short('s').Bool()
	Cert     = kingpin.Flag("cert", "Server Certificate").Short('c').Default("server.crt").String()
	Key      = kingpin.Flag("key", "Server Key File").Short('k').Default("server.key").String()
)

Functions

func Parse

func Parse() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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