package
19.12.2+incompatible
Repository: https://github.com/joshsziegler/zauth.git
Documentation: pkg.go.dev
# Functions
Error replies to the request with the specified error message and HTTP code.
ErrorInternal is a helper that response with a generic error 500 message.
ErrorUnauthorized is a helper that responds with the a 403 error code and a custom message (e.g.
GroupListGet shows the user a list of all current zauth groups.
Listen performs setup and runs the Web server (blocking).
LoginGetPost handles a user's request to view the login page (GET and POST).
LoginOrUserPageGet asks the user to login if they aren't already.
LogoutGet handles a user's request to logout of zauth.
NewGroupGet is a sub-handler that shows the Group creation page.
NewGroupPost is a sub-handler that processes the Group creation form.
NewUserGet is a sub-handler that shows the User creation page.
NewUserPost is a sub-handler that processes the User creation form.
PasswordResetGetPost is a sub-handler that processes password resets via secure tokens.
Render loads the HTML template 'name' using the provided 'data' struct and buffers the output.
UserDetailGet is a sub-handler that shows the details for a specific user.
UserListGet shows the user a list of all current zauth users.
Wrap provides a wrapper to page-specific handlers.
# Variables
DB is our shared database connection (handles connection pooling, and is goroutine-safe).
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
# Structs
Context is a struct passed to Handlers with additional information not in the standard HTTP handlers, such as User object.
No description provided by the author
# Type aliases
Handler adds a context argument and is used with handleWrap.