response

package
v0.0.0-...-bbcf6c5 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BadRequest

type BadRequest struct {
	Req     interface{}
	Message interface{} `json:"message"`
}

func (BadRequest) JSON

func (r BadRequest) JSON(ctx echo.Context) error

type NotFound

type NotFound struct {
	Message interface{} `json:"message"`
}

func (NotFound) JSON

func (r NotFound) JSON(ctx echo.Context) error

type PolicyResponse

type PolicyResponse struct {
	Message error `json:"message"`
}

func (PolicyResponse) JSON

func (r PolicyResponse) JSON(ctx echo.Context) error

type Response

type Response struct {
	Code    int         `json:"-"`
	Data    interface{} `json:"data,omitempty"`
	Message interface{} `json:"message"`
}

func (Response) JSON

func (r Response) JSON(ctx echo.Context) error

type ValidationError

type ValidationError struct {
	Field   string `json:"field"`   // Field name that failed validation
	Message string `json:"message"` // Error message describing the validation failure
}

type ValidationErrors

type ValidationErrors []ValidationError

Jump to

Keyboard shortcuts

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