Documentation
¶
Index ¶
- func HttpErrorHandler(c *echo.Context, err error)
- type Error
- type Response
- func (r *Response) Send() error
- func (r *Response) SendMessage(message string) error
- func (r *Response) SendOk() error
- func (r *Response) SetData(data any) *Response
- func (r *Response) SetErrors(err error) *Response
- func (r *Response) SetMeta(meta any) *Response
- func (r *Response) SetStatus(status int) *Response
- type ValidationError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HttpErrorHandler ¶
Types ¶
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
func NewResponse ¶
func (*Response) SendMessage ¶
type ValidationError ¶
func (ValidationError) Add ¶
func (ve ValidationError) Add(field string, messages ...string)
func (ValidationError) AddError ¶
func (ve ValidationError) AddError(field string, err error)
func (ValidationError) Error ¶
func (ve ValidationError) Error() string
func (ValidationError) IsFail ¶
func (ve ValidationError) IsFail() bool
Click to show internal directories.
Click to hide internal directories.