echochamber

package module
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 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 HTTPError

type HTTPError struct {
	Code    int    `json:"code" example:"400"`
	Message string `json:"message" example:"status bad request"`
}

type MixinController

type MixinController struct{}

func (*MixinController) Attachment

func (*MixinController) Attachment(ctx echo.Context, file, name string) error

func (*MixinController) BadRequestError

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

func (*MixinController) BindAndValidate

func (ptr *MixinController) BindAndValidate(ctx echo.Context, input interface{}) error

func (*MixinController) ConflictError

func (*MixinController) ConflictError(ctx echo.Context, err error) error

func (*MixinController) Created

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

func (*MixinController) File

func (*MixinController) File(ctx echo.Context, file string) error

func (*MixinController) Forbidden

func (*MixinController) Forbidden(ctx echo.Context) error

func (*MixinController) ForbiddenError

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

func (*MixinController) HandleError

func (ptr *MixinController) HandleError(ctx echo.Context, err error) error

func (*MixinController) Inline

func (*MixinController) Inline(ctx echo.Context, file, name string) error

func (*MixinController) InternalServerError

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

func (*MixinController) NoContent

func (*MixinController) NoContent(ctx echo.Context) error

func (*MixinController) NotFoundError

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

func (*MixinController) OkBlob

func (*MixinController) OkBlob(ctx echo.Context, contentType string, data []byte) error

func (*MixinController) OkHTML

func (*MixinController) OkHTML(ctx echo.Context, html string) error

func (*MixinController) OkHTMLBlob

func (*MixinController) OkHTMLBlob(ctx echo.Context, html []byte) error

func (*MixinController) OkJSON

func (*MixinController) OkJSON(ctx echo.Context, data interface{}) error

func (*MixinController) OkTextPlain

func (ptr *MixinController) OkTextPlain(ctx echo.Context, data string) error

func (*MixinController) ServiceUnavailableError

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

func (*MixinController) Unauthorized

func (*MixinController) Unauthorized(ctx echo.Context) error

func (*MixinController) UnauthorizedError

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

Jump to

Keyboard shortcuts

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