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: 0

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