response

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 15, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BadRequest added in v0.0.3

func BadRequest(c echo.Context, code string, message interface{}) error

func Blob added in v0.0.4

func Blob(c echo.Context, data []byte, opts ...*BlobOptions) error

func Forbidden added in v0.0.3

func Forbidden(c echo.Context) error

func InternalServerError added in v0.0.3

func InternalServerError(c echo.Context, code string, message interface{}) error

func New

func New(c echo.Context, code string, message interface{}) error

func OK

func OK(c echo.Context, data interface{}) error

func OkWithoutData

func OkWithoutData(c echo.Context) error

Types

type BlobOptions added in v0.0.4

type BlobOptions struct {
	Code        int
	ContentType string
}

func MergeBlobOptions added in v0.0.4

func MergeBlobOptions(opts ...*BlobOptions) *BlobOptions

type Style

type Style struct {
	Code    string      `json:"code"`
	Message interface{} `json:"message"`
	Data    interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

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