Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EntriesToUsers ¶ added in v1.4.0
func EntriesToUsers(entries []string) []*user
func LoadCertificate ¶ added in v1.4.0
func LoadCertificate(certFile, keyFile string) (*tls.Certificate, error)
Types ¶
type Param ¶
type Param struct { Root string EmptyRoot 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 Certificate *tls.Certificate 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 (*Param) GetDupUserNames ¶ added in v1.4.0
Click to show internal directories.
Click to hide internal directories.