package
4.13.1
Repository: https://github.com/contiamo/go-base.git
Documentation: pkg.go.dev

# Functions

FromTime creates a timestamp from an existing time value.
GetClaims retrieves the Claims object from the request context.
GetClaimsFromCtx retrieves the Claims object from the given context.
NewMiddleware creates a new authrorization middleware to set the claims in the context.
SetClaims add the Claims instance to the request Context.

# Variables

DataStoreClaims used for setting the service itself as an author of a record.
Validation error constants.
Validation error constants.
Validation error constants.
Validation error constants.
Validation error constants.
TimeFunc provides the current time when parsing token to validate "exp" claim (expiration time).

# Structs

Claims represents the expected claims that should be in JWT claims of an X-Request-Token.
Timestamp provides a timestamp value that can handle JSON strings and numeric values.