response

package
v0.0.0-...-d983439 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SUCCESS = "SUCCESS"
	FAILED  = "FAILED"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ResponseBody

type ResponseBody struct {
	Status string       `json:"status"`
	Result interface{}  `json:"result"`
	Error  *fiber.Error `json:"error,omitempty"`
}

func BuildFailedResponse

func BuildFailedResponse(err *fiber.Error) *ResponseBody

func BuildSuccessResponse

func BuildSuccessResponse(response interface{}) *ResponseBody

Jump to

Keyboard shortcuts

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