response

package
v0.0.0-...-d785689 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthError

func AuthError(ctx *fiber.Ctx, err error) error

func Error

func Error(ctx *fiber.Ctx, err *fiber.Error, message ...string) error

func Success

func Success(ctx *fiber.Ctx, code int, data ...interface{}) error

Types

type JSONResponse

type JSONResponse struct {
	StatusCode int         `json:"status_code"`
	Message    string      `json:"message,omitempty"`
	Data       interface{} `json:"data,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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