handlers

package
v0.0.0-...-4d6988e Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteFile

func DeleteFile(c *gin.Context)

func DownloadFile

func DownloadFile(c *gin.Context)

func GetFile

func GetFile(c *gin.Context)

func GetFileInfo

func GetFileInfo(c *gin.Context)

func GetMyFileStats

func GetMyFileStats(c *gin.Context)

func HealthCheck

func HealthCheck(c *gin.Context)

func ListFiles

func ListFiles(c *gin.Context)

func UploadFile

func UploadFile(c *gin.Context)

UploadFile supports both single and multiple file uploads.

Types

type UploadResult

type UploadResult struct {
	Success bool        `json:"success"`
	File    interface{} `json:"file,omitempty"`  // contains models.FileMetadata on success
	Error   string      `json:"error,omitempty"` // error message on failure
}

UploadResult is the per-file result object returned to the client.

Jump to

Keyboard shortcuts

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