//
pkg.gl
Category
github.com/xmlking/toolkit
auth
package
0.5.2
Repository:
https://github.com/xmlking/toolkit.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
1
Dependents
1
Files
52 SLOC
#
Functions
AccountFromContext
AccountFromContext gets the account from the context, which is set by the auth wrapper at the start of a call.
ContextWithAccount
ContextWithAccount sets the account in the context.
#
Constants
AccessDenied
AccessDenied to a resource.
AccessGranted
AccessGranted to a resource.
#
Structs
Account
Account provided by an auth provider.
Resource
Resource is an entity such as a user or.
Rule
No description provided by the author
#
Type aliases
Access
Access defines the type of access a rule grants.