Documentation ¶
Index ¶
- func HTTP(addr string, conf config.HTTP)
- func HTTPS(addr string, conf config.HTTPS)
- func ListingEnabled(opts *config.DirOpts, name string) bool
- func Raw(addr string, conf config.Raw)
- func SetHeader(parent http.Handler, hdrs map[string]string) http.Handler
- func WithLogging(parent http.Handler) http.Handler
- func WithReqLog(parent http.Handler, rl *reqlog.Log) http.Handler
- func WithTrace(name string, parent http.Handler) http.Handler
- type AuthDB
- type AuthWrapper
- type FileSystem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthDB ¶
func LoadAuthFile ¶
type AuthWrapper ¶
type AuthWrapper struct {
// contains filtered or unexported fields
}
func (*AuthWrapper) ServeHTTP ¶
func (a *AuthWrapper) ServeHTTP(w http.ResponseWriter, r *http.Request)
type FileSystem ¶
type FileSystem struct {
// contains filtered or unexported fields
}
func NewFS ¶
func NewFS(fs http.FileSystem, opts config.DirOpts) *FileSystem
Click to show internal directories.
Click to hide internal directories.