errors

package
v0.0.0-...-fb2c4cc Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HttpError

func HttpError(httpError HttpErrors)

Types

type Error

type Error struct {
	Message lang.Message `json:"message,omitempty"`
	Extra   Extra        `json:"data,omitempty"`
}

type Extra

type Extra map[string]interface{}

type HttpErrors

type HttpErrors struct {
	Ctx    gin.Context
	Status int
	Error  Error
}

Jump to

Keyboard shortcuts

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