package
0.0.0-20211214184315-14776eaa5bb8
Repository: https://github.com/el-mike/gochat.git
Documentation: pkg.go.dev
# Functions
NewAuthGuard - returns new AuthGuard instance.
NewHandlerCreator - returns HandlerCreator instance.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
ContextUserKey - defines the key currentUser will be saved under in current context.
Policy - describes Gochat's RBAC policy definition.
# Structs
AccessRule - defines a rule that can be used to test one's access to a given route.
AuthGuard checks if given request can be properly authenticated, by veryfying the token.
ContextUser - struct defining user assigned to current context.
HandlerCreator - takes desired controller function and produces gin's HandlerFunc.
# Type aliases
AuthenticatedControllerFn - controller function for authenticated routes.
BasicControllerFn - controller function for unauthenticated routes.