package
0.0.0-20250309181522-4a0e66a86483
Repository: https://github.com/dhax/go-base.git
Documentation: pkg.go.dev
# Functions
ErrInvalidRequest returns status 422 Unprocessable Entity including error message.
ErrRender returns status 422 Unprocessable Entity rendering response error.
ErrValidation returns status 422 Unprocessable Entity stating validation errors.
NewAccountResource creates and returns an account resource.
NewAPI configures and returns admin application API.
# Variables
The list of error types returned from account resource.
ErrBadRequest return status 400 Bad Request for malformed request body.
ErrInternalServerError returns status 500 Internal Server Error.
ErrNotFound returns status 404 Not Found for invalid resource request.
# Structs
AccountResource implements account management handler.
API provides admin application resources and handlers.
ErrResponse renderer type for handling all sorts of errors.
# Interfaces
AccountStore defines database operations for account management.