package
Version:
v0.0.0-...-5404be9
Opens a new window with list of versions in this module.
Published: Oct 15, 2020
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Handler holds objects to be reused between requests, like a database connection
NewHandler creates a new Handler
AuthRequired ensures that only authenticated requests will reach next handlers
func (*Handler) Login ¶
Login generates a new session
func (*Handler) Logout ¶
Logout logs out a user removing the token used for that
func (*Handler) Signup ¶
Signup allows a user to sign up
func (*Handler) Token ¶
Token creates a new Auth token
func (*Handler) Tokens ¶
Tokens returns the list of tokens for the current user
func (*Handler) User ¶
User returns information about the current user
Source Files
¶
Click to show internal directories.
Click to hide internal directories.