res

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fail

func Fail(c echo.Context, message error) error

func FailCode

func FailCode(c echo.Context, code int, message error) error

func Ok

func Ok[T any](c echo.Context, model T) error

func OkCode

func OkCode[T any](c echo.Context, code int, model T) error

Types

type BaseResponse

type BaseResponse struct {
	Success bool
	Message string
}

type ModelResponse

type ModelResponse[T any] struct {
	BaseResponse
	Data T
}

Jump to

Keyboard shortcuts

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