api

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LegitimizeFileApi

type LegitimizeFileApi struct {
	core.Api
}

LegitimizeFileApi API struct.

func NewLegitimizeFileApi

func NewLegitimizeFileApi() *LegitimizeFileApi

NewLegitimizeFileApi As a constructor to legitimize file API. Related with LegitimizeFileApi

func (*LegitimizeFileApi) Handle

func (h *LegitimizeFileApi) Handle(c *core.Ctx) error

Handle Process main logic for API. @Summary Legitimize uploaded file @Description Legitimize uploaded file @Tags Storage @Accept json @Produce json @Success 200 {array} dto.LegitimizeItem @Param data body request.LegitimizeFile true "Legitimize uploaded file payload" @Failure 400 {object} response.Error @Failure 401 {object} response.Unauthorized @Security ApiKeyAuth @Router /storage/legitimize-files [put]

func (*LegitimizeFileApi) Validate

func (h *LegitimizeFileApi) Validate(c *core.Ctx) error

Validate Verify data from request.

type PresignedURLApi

type PresignedURLApi struct {
	core.Api
}

PresignedURLApi API struct.

func NewPresignedURLApi

func NewPresignedURLApi() *PresignedURLApi

NewPresignedURLApi As a constructor to get pre-signed URL. Related with NewPresignedURLApi

func (*PresignedURLApi) Handle

func (h *PresignedURLApi) Handle(c *core.Ctx) error

Handle Process main logic for API. @Summary Get Pre-sign URL to upload @Description Get Pre-sign URL to upload @Tags Storage @Accept json @Produce json @Param filename query string true "Filename" @Failure 400 {object} response.Error @Failure 401 {object} response.Unauthorized @Success 200 {object} response.PresignedURL @Security ApiKeyAuth @Router /storage/presigned-url [get]

func (*PresignedURLApi) Validate

func (h *PresignedURLApi) Validate(c *core.Ctx) error

Validate Verify data from request.

Jump to

Keyboard shortcuts

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