package
0.0.0-20241212140828-7a61fdfd2204
Repository: https://github.com/ardanlabs/encore.git
Documentation: pkg.go.dev
# Functions
Authorize checks the user making the request is an admin or user.
AuthorizeHome checks the user making the call has specified a home id on the route that matches the claims.
AuthorizeProduct checks the user making the call has specified a product id on the route that matches the claims.
AuthorizeUser checks the user making the call has specified a user id on the route that matches the claims.
Basic processes basic authentication logic.
Bearer processes JWT authentication logic.
BeginCommitRollback starts a transaction for the domain call.
GetHome returns the home from the context.
GetProduct returns the product from the context.
GetTran retrieves the value that can manage a transaction.
GetUser extracts the user from the context.
GetUserID extracts the user id from the context.
Metrics sets the basic counters and guages.
Panics handles panics that occur when processing a request.
# Variables
ErrInvalidID represents a condition where the id is not a uuid.