api

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2025 License: MIT Imports: 13 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} http.Error @Failure 401 {object} http.Error @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} http.Error @Failure 401 {object} http.Error @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.

type UploadApi

type UploadApi struct {
	core.Api
}

UploadApi API struct.

func NewUploadApi

func NewUploadApi() *UploadApi

NewUploadApi As a constructor to upload file. Related with UploadApi

func (*UploadApi) Handle

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

Handle UploadApi main logic for API. @Summary Upload file to Server @Description Upload file to Server (Local Storage) @Tags Storage @Accept multipart/form-data @Produce json @Param file formData file true "File" @Success 200 @Failure 400 {object} http.Error @Failure 401 {object} http.Error @Security ApiKeyAuth @Router /storage/uploads [post]

func (*UploadApi) Validate

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

Validate Verify data from request.

type UploadFileApi

type UploadFileApi struct {
	core.Api
}

UploadFileApi API struct.

func NewUploadFileApi

func NewUploadFileApi() *UploadFileApi

NewUploadFileApi As a constructor to upload file. Related with UploadFileApi

func (*UploadFileApi) Handle

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

Handle UploadFileApi main logic for API. @Summary Put file to Server @Description Put file to Server (Local Storage). <b>Note: Don't work on Swagger 2.0</b> @Tags Storage @Accept octet-stream @Produce json @Success 204 @Param file_name path string true "File name" @Param G-Key query string true "G-Key" @Param data body string true "Upload file" @Failure 400 {object} http.Error @Failure 401 {object} http.Error @Security ApiKeyAuth @Router /storage/uploads/{file_name} [put]

func (*UploadFileApi) Validate

func (h *UploadFileApi) 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