handler

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

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 Logger

type Logger func(r *http.Request, err error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL