fileassethttp

package
v0.0.0-...-db77838 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package fileassethttp adapts file metadata HTTP requests to the file usecase.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(group *echo.Group, handler *Handler)

Register mounts file routes on group.

Types

type Handler

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

Handler adapts file HTTP requests to the file usecase.

func New

func New(uc *usecase.Usecase, audit *oprec.Recorder) *Handler

New creates a file HTTP handler.

func (*Handler) CreateCategory

func (h *Handler) CreateCategory(c *echo.Context) error

CreateCategory adds one file category.

func (*Handler) DeleteCategory

func (h *Handler) DeleteCategory(c *echo.Context) error

DeleteCategory removes one file category without deleting files.

func (*Handler) DeleteFile

func (h *Handler) DeleteFile(c *echo.Context) error

DeleteFile removes one file metadata record and its stored bytes when present.

func (*Handler) ImportURL

func (h *Handler) ImportURL(c *echo.Context) error

ImportURL registers an external HTTP(S) URL as a file asset.

func (*Handler) ListCategories

func (h *Handler) ListCategories(c *echo.Context) error

ListCategories returns the category tree used by file management.

func (*Handler) ListFiles

func (h *Handler) ListFiles(c *echo.Context) error

ListFiles returns uploaded file records.

func (*Handler) RenameFile

func (h *Handler) RenameFile(c *echo.Context) error

RenameFile updates one file display name.

func (*Handler) ServeUpload

func (h *Handler) ServeUpload(c *echo.Context) error

ServeUpload returns one stored uploaded file after boot-level route authorization has accepted the request.

func (*Handler) UpdateCategory

func (h *Handler) UpdateCategory(c *echo.Context) error

UpdateCategory changes one file category.

func (*Handler) UploadFile

func (h *Handler) UploadFile(c *echo.Context) error

UploadFile stores one uploaded file and records its metadata.

Jump to

Keyboard shortcuts

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