param

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Param

type Param struct {
	Root string

	FallbackProxies          map[string]string
	AlwaysProxies            map[string]string
	IgnoreProxyTargetBadCert bool

	Aliases map[string]string

	GlobalUpload bool
	UploadUrls   []string
	UploadDirs   []string

	GlobalArchive bool
	ArchiveUrls   []string
	ArchiveDirs   []string

	GlobalCors bool
	CorsUrls   []string
	CorsDirs   []string

	GlobalAuth  bool
	AuthUrls    []string
	AuthDirs    []string
	UsersPlain  []*user
	UsersBase64 []*user
	UsersMd5    []*user
	UsersSha1   []*user
	UsersSha256 []*user
	UsersSha512 []*user

	Key          string
	Cert         string
	Listens      []string
	ListensPlain []string
	ListensTLS   []string
	HostNames    []string
	Template     string

	Shows     *regexp.Regexp
	ShowDirs  *regexp.Regexp
	ShowFiles *regexp.Regexp
	Hides     *regexp.Regexp
	HideDirs  *regexp.Regexp
	HideFiles *regexp.Regexp

	AccessLog string
	ErrorLog  string
}

func ParseCli

func ParseCli() []*Param

Jump to

Keyboard shortcuts

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