web

package
v0.0.0-...-36ab9e0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResError

func ResError(c *fiber.Ctx, err error, status ...int) error

Response error object and parse error status code

func ResJSON

func ResJSON(c *fiber.Ctx, status int, v interface{}) error

Response json data with status code

func ResList

func ResList(c *fiber.Ctx, v interface{})

Response data with list object

func ResOK

func ResOK(c *fiber.Ctx)

Response success with status ok

func ResPage

func ResPage(c *fiber.Ctx, v interface{}, pr *schema.PaginationResponse) error

Response pagination data object

func ResSuccess

func ResSuccess(c *fiber.Ctx, v interface{}) error

Response data object

Types

This section is empty.

Jump to

Keyboard shortcuts

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