Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func New ¶
func New(fs wd.FileSystem, funcs ...OptionFunc) *Handler
func (*Handler) ServeHTTP ¶
func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP implements http.Handler.
type OptionFunc ¶
type OptionFunc func(opts *Options)
func WithLockSystem ¶
func WithLockSystem(lockSystem wd.LockSystem) OptionFunc
func WithLogger ¶
func WithLogger(logger Logger) OptionFunc
func WithMiddlewares ¶
func WithMiddlewares(middewares ...webdav.Middleware) OptionFunc
func WithPrefix ¶
func WithPrefix(prefix string) OptionFunc
type Options ¶
type Options struct {
Prefix string
Middlewares []webdav.Middleware
LockSystem wd.LockSystem
Logger Logger
}
func NewOptions ¶
func NewOptions(funcs ...OptionFunc) *Options
Click to show internal directories.
Click to hide internal directories.