Documentation ¶
Index ¶
Constants ¶
View Source
const ( Secret = "secret" MockPassword = "password" ExpirationMinutes = 5 )
Variables ¶
This section is empty.
Functions ¶
func HandleEditUser ¶
func HandleEditUser(w http.ResponseWriter, r *http.Request)
func HandleGetUser ¶
func HandleGetUser(w http.ResponseWriter, r *http.Request)
func HandleLogin ¶
func HandleLogin(w http.ResponseWriter, r *http.Request)
func HandleNewUser ¶
func HandleNewUser(w http.ResponseWriter, r *http.Request)
Types ¶
type Credentials ¶
type CustomClaims ¶
type CustomClaims struct { Username string `json:username` jwt.StandardClaims }
Click to show internal directories.
Click to hide internal directories.