web

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: MIT Imports: 9 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

Index

Constants

View Source
const DefaultBucket = "ecmdb"

Variables

This section is empty.

Functions

This section is empty.

Types

type GetPresignedUrl

type GetPresignedUrl struct {
	ObjectName string `json:"object_name"`
	Bucket     string `json:"bucket"`
	Prefix     string `json:"prefix"`
}

type Handler

type Handler struct {
	capability.IRegistry
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(svc service.Service) *Handler

func (*Handler) Download

func (h *Handler) Download(ctx *gin.Context)

func (*Handler) GetPresignedUrl

func (h *Handler) GetPresignedUrl(ctx *ginx.Context, req GetPresignedUrl) (ginx.Result, error)

func (*Handler) IdentifyRoutes added in v1.11.2

func (h *Handler) IdentifyRoutes(_ *gin.Engine)

func (*Handler) PrivateRoutes

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

func (*Handler) PublicRoutes added in v1.11.2

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

func (*Handler) PutPresignedUrl

func (h *Handler) PutPresignedUrl(ctx *ginx.Context, req PutPresignedUrl) (ginx.Result, error)

func (*Handler) RemoveObject

func (h *Handler) RemoveObject(ctx *ginx.Context, req RemoveObjectReq) (ginx.Result, error)

func (*Handler) Upload

func (h *Handler) Upload(ctx *gin.Context)

type PutPresignedUrl

type PutPresignedUrl struct {
	ObjectName string `json:"object_name"`
	Bucket     string `json:"bucket"`
	Prefix     string `json:"prefix"`
}

type RemoveObjectReq

type RemoveObjectReq struct {
	ObjectName string `json:"object_name"`
	Bucket     string `json:"bucket"`
	Prefix     string `json:"prefix"`
}

Jump to

Keyboard shortcuts

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