status

package
v1.0.39 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareSTatus added in v1.0.38

func CompareSTatus(resp response.Response, status response.Status) bool

func ResponseBuilder

func ResponseBuilder(status int, message string, data interface{}) ([]byte, error)

func ResponseCase

func ResponseCase(w *http.ResponseWriter, status response.Status, data interface{})

func ResponseCaseEcho

func ResponseCaseEcho(c echo.Context, status response.Status, data interface{}) error

func ResponseCaseEchov2 added in v1.0.34

func ResponseCaseEchov2(c echo.Context, r response.Response) error

func ResponseCasev2 added in v1.0.34

func ResponseCasev2(w *http.ResponseWriter, r response.Response)

func ResponseCustom added in v1.0.35

func ResponseCustom(status int, message string, data interface{}) response.Response

func ResponseStaNdard added in v1.0.35

func ResponseStaNdard(s response.Status, data interface{}) response.Response

Types

This section is empty.

Jump to

Keyboard shortcuts

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