Documentation ¶
Index ¶
- type AllUsersResponse
- type AuthController
- func (a *AuthController) GetAllUsersHandler(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)
- func (a *AuthController) Login(w http.ResponseWriter, r *http.Request)
- func (a *AuthController) Logout(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)
- func (a *AuthController) RefreshToken(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllUsersResponse ¶
type AuthController ¶
type AuthController struct { AB backends.Authentication SecretKey []byte JWTExpirationDelta int Enabled bool }
func GetNewAuthenticationController ¶
func GetNewAuthenticationController(authBackend backends.Authentication, secretKey []byte, exp int, enabled bool) *AuthController
GetNewAuthenticationController - returns a pointer to initialised AuthController
func (*AuthController) GetAllUsersHandler ¶
func (a *AuthController) GetAllUsersHandler(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)
GetAllUsersHandler - returns a list of all users
func (*AuthController) Login ¶
func (a *AuthController) Login(w http.ResponseWriter, r *http.Request)
func (*AuthController) Logout ¶
func (a *AuthController) Logout(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)
func (*AuthController) RefreshToken ¶
func (a *AuthController) RefreshToken(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)
Click to show internal directories.
Click to hide internal directories.