package
Version:
v1.0.8
Opens a new window with list of versions in this module.
Published: May 20, 2019
License: GPL-3.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
func Signin(r *restful.Request, w *restful.Response)
func Signin(w http.ResponseWriter, r *http.Request) {
type Claims struct {
Username string `json:"username"`
jwt.StandardClaims
}
type Credentials struct {
Password string `json:"password"`
Username string `json:"username"`
}
Create a struct that models the structure of a user, both in the request body, and in the DB
Source Files
¶
Click to show internal directories.
Click to hide internal directories.