web

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: MIT Imports: 9 Imported by: 0

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 *gin.Context, req GetPresignedUrl) (ginx.Result, error)

func (*Handler) PrivateRoutes

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

func (*Handler) PutPresignedUrl

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

func (*Handler) RemoveObject

func (h *Handler) RemoveObject(ctx *gin.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