Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenDefaultConfig ¶
func GenDefaultConfig()
Types ¶
type Config ¶
type Config struct {
Servers []ServerConfig `json:"servers,omitempty"`
}
func LoadConfig ¶
type DisableListingFileSystem ¶
type DisableListingFileSystem struct {
FS http.FileSystem
}
type ServerConfig ¶
type ServerConfig struct { Addr string `json:"addr,omitempty"` Root string `json:"root,omitempty"` EnableGzip bool `json:"enable_gzip,omitempty"` DisableListing bool `json:"disable_listing,omitempty"` To string `json:"to,omitempty"` Cert string `json:"cert,omitempty"` Key string `json:"key,omitempty"` WebDAVs []DavConfig `json:"webdavs,omitempty"` }
Click to show internal directories.
Click to hide internal directories.