package
0.0.0-20230112123155-9d1c6bba455e
Repository: https://github.com/dwata-tech/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 application API.
NewProfileResource creates and returns a profile resource.
# Variables
The list of error types returned from account resource.
ErrBadRequest returns status 400 Bad Request for malformed request body.
ErrForbidden returns status 403 Forbidden for unauthorized request.
ErrInternalServerError returns status 500 Internal Server Error.
ErrNotFound returns status 404 Not Found for invalid resource request.
The list of error types returned from account resource.
ErrUnauthorized returns 401 Unauthorized.
# Structs
AccountResource implements account management handler.
API provides application resources and handlers.
ErrResponse renderer type for handling all sorts of errors.
ProfileResource implements profile management handler.
# Interfaces
AccountStore defines database operations for account.
ProfileStore defines database operations for a profile.