controller

package
v0.0.0-...-591ffde Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct{}

func (*Controller) BadRequestError

func (controller *Controller) BadRequestError(ctx echo.Context, err error) error

func (*Controller) Created

func (controller *Controller) Created(ctx echo.Context, data interface{}) error

func (*Controller) Forbidden

func (controller *Controller) Forbidden(ctx echo.Context) error

func (*Controller) ForbiddenError

func (controller *Controller) ForbiddenError(ctx echo.Context, err error) error

func (*Controller) InternalServerError

func (controller *Controller) InternalServerError(ctx echo.Context, err error) error

func (*Controller) NoContent

func (controller *Controller) NoContent(ctx echo.Context) error

func (*Controller) NotFoundError

func (controller *Controller) NotFoundError(ctx echo.Context, err error) error

func (*Controller) Ok

func (controller *Controller) Ok(ctx echo.Context, data interface{}) error

func (*Controller) OkBlob

func (controller *Controller) OkBlob(ctx echo.Context, contentType string, b []byte) error

func (*Controller) ServiceUnavailableError

func (controller *Controller) ServiceUnavailableError(ctx echo.Context, err error) error

func (*Controller) Unauthorized

func (controller *Controller) Unauthorized(ctx echo.Context) error

func (*Controller) UnauthorizedError

func (controller *Controller) UnauthorizedError(ctx echo.Context, err error) error

type ConvController

type ConvController struct {
	Controller
	// contains filtered or unexported fields
}

Operations about Conv

func (*ConvController) DocxToHtml

func (controller *ConvController) DocxToHtml(ctx echo.Context) error

DocxToHtml godoc Post DocxToHtml @ID DocxToHtml @Summary Convert file from docx to html @Description Convert file from docx to html @Tags DocxToHtml @Accept mpfd @Product octet-stream @Param file formData file true "this is a test file" @Success 200 @Failure 400 {object} models.HTTPError @Failure 500 {object} models.HTTPError @Router /docx-to-html [post]

func (*ConvController) DocxToPdf

func (controller *ConvController) DocxToPdf(ctx echo.Context) error

DocxToPdf godoc Post DocxToPdf @ID DocxToPdf @Summary Convert file from docx to pdf @Description Convert file from docx to pdf @Tags DocxToPdf @Accept mpfd @Product octet-stream @Param file formData file true "this is a test file" @Success 200 @Failure 400 {object} models.HTTPError @Failure 500 {object} models.HTTPError @Router /docx-to-pdf [post]

func (*ConvController) HtmlToDocx

func (controller *ConvController) HtmlToDocx(ctx echo.Context) error

HtmlToDocx godoc Post HtmlToDocx @ID HtmlToDocx @Summary Convert file from html to docx @Description Convert file from html to docx @Tags HtmlToDocx @Accept mpfd @Product octet-stream @Param file formData file true "this is a test file" @Success 200 @Failure 400 {object} models.HTTPError @Failure 500 {object} models.HTTPError @Router /html-to-docx [post]

func (*ConvController) HtmlToPdf

func (controller *ConvController) HtmlToPdf(ctx echo.Context) error

HtmlToPdf godoc Post HtmlToPdf @ID HtmlToPdf @Summary Convert file from html to pdf @Description Convert file from html to pdf @Tags HtmlToPdf @Accept mpfd @Product octet-stream @Param file formData file true "this is a test file" @Success 200 @Failure 400 {object} models.HTTPError @Failure 500 {object} models.HTTPError @Router /html-to-pdf [post]

func (*ConvController) Register

func (controller *ConvController) Register(group *echo.Group)

Jump to

Keyboard shortcuts

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