server

package
v0.0.0-...-5f8adf8 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2025 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WebdavjsHTML []byte

Functions

func NewHandler

func NewHandler(cfg *HandlerConfig, preRequest preRequestFunc) *handler

Types

type HandlerConfig

type HandlerConfig struct {
	Prefix   string
	PathDir  string
	Username string
	Password string
	ReadOnly bool
}

type PreRequestResult

type PreRequestResult struct {
	ReadOnly bool
	Authed   bool
}

type WebDAVServer

type WebDAVServer struct {
	// contains filtered or unexported fields
}

func NewWebDAVServer

func NewWebDAVServer(addr string, handlerConfigs []*HandlerConfig, davListIsSecret bool, filePreRequestHook string) (*WebDAVServer, error)

func (*WebDAVServer) Run

func (s *WebDAVServer) Run() error

Jump to

Keyboard shortcuts

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