Documentation ¶
Index ¶
- func ServerEmptyResponse() *fiber.Map
- func ServerErrorResponse(err error) *fiber.Map
- func ServerSuccessResponse(data *types.Server) *fiber.Map
- func SetupErrorResponse(err error) *fiber.Map
- func SetupSuccessResponse(data config.Config) *fiber.Map
- func StatusErrorResponse(err error) *fiber.Map
- func StatusSuccessResponse(data Status) *fiber.Map
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServerEmptyResponse ¶
func ServerEmptyResponse() *fiber.Map
ServerEmptyResponse is a successful response where no server is found that will be passed in the response by handler.
func ServerErrorResponse ¶
func ServerErrorResponse(err error) *fiber.Map
ServerErrorResponse is the singular ErrorResponse that will be passed in the response by handler.
func ServerSuccessResponse ¶
ServerSuccessResponse is the SuccessResponse that will be passed in the response by handler.
func SetupErrorResponse ¶
func SetupErrorResponse(err error) *fiber.Map
SetupErrorResponse is the singular ErrorResponse that will be passed in the response by handler.
func SetupSuccessResponse ¶
SetupSuccessResponse is the SuccessResponse that will be passed in the response by handler.
func StatusErrorResponse ¶
func StatusErrorResponse(err error) *fiber.Map
SetupErrorResponse is the singular ErrorResponse that will be passed in the response by handler.
func StatusSuccessResponse ¶
func StatusSuccessResponse(data Status) *fiber.Map
SetupSuccessResponse is the SuccessResponse that will be passed in the response by handler.