package
0.0.0-20221024203120-3c0f6d439f8c
Repository: https://github.com/edbeer/restapi.git
Documentation: pkg.go.dev
# Functions
Configure JWT cookie.
Configure Session Cookie.
Delete session.
Extract JWT from Request .
Extract bearer token from request Authorization header.
Generate new JWT Token.
Get has more.
Get user IP address.
Get pagination query struct from.
Get context with request id.
Get request id from echo context.
Get total pages int.
Get User from context.
Read request body and validate.
Validate is user from owner of content.
Validate struct fields.
# Structs
JWT Claims struct.
Pagination with out offset.
ReqIDCtxKey is a key used for the Request ID from context.
UserCtxKey is a key used for the User object in the context.