upshare

package module
v0.0.0-...-13d6f6f Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: ISC Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBackoffNotAllowed = caddyhttp.Error(
	http.StatusBadRequest,
	errors.New("directory backoff not allowed"),
)

ErrBackoffNotAllowed is returned when a path contains ../.

View Source
var ErrNoRoot = caddyhttp.Error(
	http.StatusInternalServerError,
	errors.New("no root directive"),
)

ErrNoRoot is returned when there is no root directive set.

Functions

This section is empty.

Types

type Sharer

type Sharer struct {
	Symlink string `json:"symlink"`
}

func (*Sharer) CaddyModule

func (sh *Sharer) CaddyModule() caddy.ModuleInfo

func (*Sharer) Provision

func (sh *Sharer) Provision(ctx caddy.Context) error

func (*Sharer) ServeHTTP

func (sh *Sharer) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error

type Uploader

type Uploader struct{}

func (*Uploader) CaddyModule

func (u *Uploader) CaddyModule() caddy.ModuleInfo

func (*Uploader) ServeHTTP

func (u *Uploader) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error

Jump to

Keyboard shortcuts

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