web

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArchiveReq

type ArchiveReq struct {
	Name  string `json:"name"`
	Items []Item `json:"items"`
}

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler() *Handler

func (*Handler) Archive

func (h *Handler) Archive(ctx *gin.Context, req ArchiveReq) (ginx.Result, error)

func (*Handler) Download

func (h *Handler) Download(ctx *gin.Context) (ginx.Result, error)

func (*Handler) Index

func (h *Handler) Index(ctx *gin.Context) (ginx.Result, error)

func (*Handler) Move

func (h *Handler) Move(ctx *gin.Context, req MoveReq) (ginx.Result, error)

func (*Handler) NewFile

func (h *Handler) NewFile(ctx *gin.Context, req NewFileReq) (ginx.Result, error)

func (*Handler) NewFolder

func (h *Handler) NewFolder(ctx *gin.Context, req NewFolderReq) (ginx.Result, error)

func (*Handler) Preview

func (h *Handler) Preview(ctx *gin.Context) (ginx.Result, error)

func (*Handler) RegisterRoutes

func (h *Handler) RegisterRoutes(server *gin.Engine)

func (*Handler) Remove

func (h *Handler) Remove(ctx *gin.Context, req RemoveReq) (ginx.Result, error)

func (*Handler) Rename

func (h *Handler) Rename(ctx *gin.Context, req RenameReq) (ginx.Result, error)

func (*Handler) Save

func (h *Handler) Save(ctx *gin.Context, req SaveReq) (ginx.Result, error)

func (*Handler) Search

func (h *Handler) Search(ctx *gin.Context) (ginx.Result, error)

func (*Handler) SetFinder added in v1.0.1

func (h *Handler) SetFinder(id int64, f finder.Finder)

func (*Handler) Subfolders

func (h *Handler) Subfolders(ctx *gin.Context) (ginx.Result, error)

func (*Handler) Upload

func (h *Handler) Upload(ctx *gin.Context) (ginx.Result, error)

type Item

type Item struct {
	Path string          `json:"path"`
	Type finder.FileType `json:"type"`
}

type MoveReq

type MoveReq struct {
	Item  string `json:"item"`
	Items []Item `json:"items"`
}

type NewFileReq

type NewFileReq struct {
	Name string `json:"name"`
}

type NewFolderReq

type NewFolderReq struct {
	Name string `json:"name"`
}

type RemoveReq

type RemoveReq struct {
	Items []Item `json:"items"`
}

type RenameReq

type RenameReq struct {
	Item string `json:"item"`
	Name string `json:"name"`
}

type RetrieveFolder

type RetrieveFolder struct {
	Folders []finder.FileInfo `json:"folders"`
}

type SaveReq

type SaveReq struct {
	Content string `json:"content"`
}

Jump to

Keyboard shortcuts

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