handlers

package
v0.0.0-...-306e673 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const TOKEN_COOKIE_NAME = "jwt-yt-dlp-webui"

Variables

This section is empty.

Functions

func BulkDownload

func BulkDownload(mdb *internal.MemoryDB) http.HandlerFunc

func DeleteFile

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

func DownloadFile

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

func ListDownloaded

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

func Login

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

func Logout

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

func SendFile

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

Types

type DeleteRequest

type DeleteRequest = DirectoryEntry

type DirectoryEntry

type DirectoryEntry struct {
	Name        string    `json:"name"`
	Path        string    `json:"path"`
	Size        int64     `json:"size"`
	ModTime     time.Time `json:"modTime"`
	IsVideo     bool      `json:"isVideo"`
	IsDirectory bool      `json:"isDirectory"`
}

type ListRequest

type ListRequest struct {
	SubDir  string `json:"subdir"`
	OrderBy string `json:"orderBy"`
}

type LoginRequest

type LoginRequest struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

Jump to

Keyboard shortcuts

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