Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LegitimizeFileApi ¶
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]
type PresignedURLApi ¶
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]
type UploadApi ¶
UploadApi API struct.
func NewUploadApi ¶
func NewUploadApi() *UploadApi
NewUploadApi As a constructor to upload file. Related with UploadApi
func (*UploadApi) Handle ¶
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]
type UploadFileApi ¶
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]