disk

package
v0.0.0-...-36dec68 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDirHandler

func CreateDirHandler(w http.ResponseWriter, r *http.Request)

Create a directory

func DeleteHandler

func DeleteHandler(w http.ResponseWriter, r *http.Request)

func DirHandler

func DirHandler(w http.ResponseWriter, r *http.Request)

func DownloadHandler

func DownloadHandler(w http.ResponseWriter, r *http.Request)

Serve file for download or viewing

func DriveHandler

func DriveHandler(w http.ResponseWriter, r *http.Request)

Types

type Content

type Content struct {
	FileDir string
	File    string
	FoldDir string
	Fold    string
}

type Dir

type Dir struct {
	Contents []Content
	CurDir   string
	PrevDir  string
	TheDir   string
}

type Drives

type Drives struct {
	Storage string
	Label   string
}

Jump to

Keyboard shortcuts

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