//
pkg.gl
Category
github.com/mudphilo/chat
server
auth
package
0.15.3-rc2
Repository:
https://github.com/mudphilo/chat.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
2
Dependents
0
Files
88 SLOC
#
Packages
anon
No description provided by the author
basic
No description provided by the author
token
No description provided by the author
#
Functions
ParseAuthLevel
ParseAuthLevel parses authentication level from a string.
#
Constants
LevelAnon
LevelAnon is anonymous user/light authentication.
LevelAuth
LevelAuth is fully authenticated user.
LevelNone
LevelNone is undefined/not authenticated.
LevelRoot
LevelRoot is a superuser (currently unused).
Validated
Validated bit is set if user's credentials are already validated.
#
Structs
Rec
Rec is an authentication record.
#
Interfaces
AuthHandler
AuthHandler is the interface which auth providers must implement.
#
Type aliases
Feature
Feature is a bitmap of authenticated features, such as validated/not validated.
Level
Level is the type for authentication levels.