Documentation ¶
Index ¶
- type Controller
- func (controller *Controller) BadRequestError(ctx echo.Context, err error) error
- func (controller *Controller) Created(ctx echo.Context, data interface{}) error
- func (controller *Controller) Forbidden(ctx echo.Context) error
- func (controller *Controller) ForbiddenError(ctx echo.Context, err error) error
- func (controller *Controller) InternalServerError(ctx echo.Context, err error) error
- func (controller *Controller) NoContent(ctx echo.Context) error
- func (controller *Controller) NotFoundError(ctx echo.Context, err error) error
- func (controller *Controller) Ok(ctx echo.Context, data interface{}) error
- func (controller *Controller) OkBlob(ctx echo.Context, contentType string, b []byte) error
- func (controller *Controller) ServiceUnavailableError(ctx echo.Context, err error) error
- func (controller *Controller) Unauthorized(ctx echo.Context) error
- func (controller *Controller) UnauthorizedError(ctx echo.Context, err error) error
- type ConvController
- func (controller *ConvController) DocxToHtml(ctx echo.Context) error
- func (controller *ConvController) DocxToPdf(ctx echo.Context) error
- func (controller *ConvController) HtmlToDocx(ctx echo.Context) error
- func (controller *ConvController) HtmlToPdf(ctx echo.Context) error
- func (controller *ConvController) Register(group *echo.Group)
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)