utils

package
v0.0.0-...-fad0cd1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2022 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResponseHandler

func ResponseHandler(ctx *fasthttp.RequestCtx, statusCode int, message MessageStruct)

Types

type MessageStruct

type MessageStruct struct {
	Status  interface{} `json:"status"`
	Message interface{} `json:"message"`
	Data    interface{} `json:"data"`
}

func GenerateResponse

func GenerateResponse(status, message string, data interface{}) MessageStruct

Jump to

Keyboard shortcuts

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