Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Permissions `mapstructure:",squash"` Debug bool Address string Port int TLS bool Cert string Key string Prefix string NoSniff bool LogFormat string Auth bool CORS CORS Users []User }
func ParseConfig ¶ added in v4.3.0
type Handler ¶ added in v4.3.0
type Handler struct { *Config // contains filtered or unexported fields }
type Permissions ¶ added in v4.3.0
func (Permissions) Allowed ¶ added in v4.3.0
func (p Permissions) Allowed(r *http.Request) bool
Allowed checks if the user has permission to access a directory/file
func (*Permissions) Validate ¶ added in v4.3.0
func (p *Permissions) Validate() error
Click to show internal directories.
Click to hide internal directories.