handler

package
v0.0.0-...-47878e9 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Attach

func Attach(r *mux.Router, pathPrefix string, storage StorageSiteLoader)

func NewResponseWriter

func NewResponseWriter(w http.ResponseWriter) *responseWriter

Types

type Handler

type Handler struct {
	StorageLoader StorageSiteLoader
}

func (Handler) DownloadFile

func (h Handler) DownloadFile(w http.ResponseWriter, r *http.Request)

func (Handler) HeadFile

func (h Handler) HeadFile(w http.ResponseWriter, r *http.Request)

func (Handler) UploadFile

func (h Handler) UploadFile(w http.ResponseWriter, r *http.Request)

type StorageSiteLoader

type StorageSiteLoader interface {
	LoadConfig(local bool) (*pool.ConnectionConfig, error)
}

Jump to

Keyboard shortcuts

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