package
0.0.0-20231112095346-9008a76cf7cf
Repository: https://github.com/dhontecillas/hfw.git
Documentation: pkg.go.dev

# Functions

RequireAPIToken checks a valid token, and stores the userID for the token to the context.
WAPICreate is the handler for a create api token endpoint.
WAPIDelete is the handler for the delete api token endpoint.
WAPIList is the handler for the list api tokens endpoint.
WAPIRoutes sets up the routes to handle token api keys.

# Constants

PathAPIKeys contains a route to display apikeys.

# Structs

CreatePayload is the required payload to create an API token.
DeletePayload is the required payload to delete an API token.
FailRes is the response for a failed operation.
OKRes is the response for a successful operation.
TokenAPIKey has the data for an API token.
TokenAPIKeyList has a list of TokenAPIKey's.