helper

package
v0.0.0-...-b79ed68 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorFormatter

func ErrorFormatter(err error) []string

Types

type Handler

type Handler interface {
	Route() []Route
}

type M

type M map[string]interface{}

type Meta

type Meta struct {
	Code    int         `json:"code"`
	Status  string      `json:"status"`
	Message interface{} `json:"message"`
}

type Response

type Response struct {
	Meta Meta        `json:"meta"`
	Data interface{} `json:"data"`
}

func ResponseFormatter

func ResponseFormatter(code int, status string, message interface{}, data interface{}) Response

type Route

type Route struct {
	Method  string
	Path    string
	Handler []gin.HandlerFunc
}

Jump to

Keyboard shortcuts

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