handlers

package
v0.9.18 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BadRequest added in v0.8.14

func BadRequest(
	log *zerolog.Logger,
	c *fiber.Ctx,
	clientMessage, serverMessage string,
	err error,
) error

func InternalError added in v0.8.14

func InternalError(log *zerolog.Logger, c *fiber.Ctx, message string, err error) error

func LinksFromArray added in v0.8.15

func LinksFromArray(prefix string, arr []string, suffix ...string) []string

func Res

func Res(c *fiber.Ctx, statusCode int, message string) error

func ResData

func ResData(c *fiber.Ctx, statusCode int, message string, data interface{}) error

Types

type ResponseHTTP added in v0.8.19

type ResponseHTTP struct {
	Status  int         `json:"status"`
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

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