package
1.2.26
Repository: https://github.com/goadmingroup/go-admin.git
Documentation: pkg.go.dev

# Functions

Auth get the user model from Context.
Check check the password and username and return the user model.
CheckPermissions check the permission of the user.
DefaultInvoker return a default Invoker.
DelCookie delete the cookie from Context.
EncodePassword encode the password.
Filter retrieve the user model from Context and check the permission at the same time.
GetCurUser return the user model.
GetCurUserByID return the user model of given user id.
No description provided by the author
GetSessionByKey get the session value by key.
No description provided by the author
GetUserID return the user id from the session.
No description provided by the author
InitSession return the default Session.
Middleware is the default auth middleware of plugins.
No description provided by the author
SetCookie set the cookie.
SetPrefix return the default Invoker with the given prefix.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Config wraps the Session info.
DBDriver is a driver which uses database as a persistence tool.
Invoker contains the callback functions which are used in the route middleware.
No description provided by the author
Session contains info of session.
No description provided by the author

# Interfaces

PersistenceDriver is a driver of storing and getting the session info.

# Type aliases

CSRFToken is type of a csrf token list.
MiddlewareCallback is type of callback function.
No description provided by the author