disk

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2022 License: BSD-2-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteHandler

func DeleteHandler(pattern string) http.Handler

func HandleDownload

func HandleDownload(w http.ResponseWriter, r *http.Request, filename string)

func HandleListFiles

func HandleListFiles(w http.ResponseWriter, r *http.Request, pattern string)

func MethodRouter

func MethodRouter(page, upload, delete http.Handler) http.Handler

func PageServer

func PageServer(pattern string, name string) http.Handler

func UploadHandler

func UploadHandler() http.Handler

Types

type File

type File struct {
	No       int    `json:"no"`
	Name     string `json:"name"`
	Size     string `json:"size"`
	ModTime  string `json:"mod_time"`
	Filepath string `json:"filepath"`
}

Jump to

Keyboard shortcuts

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