Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Middleware ¶
func Middleware() gin.HandlerFunc
Middleware to validate Authorization Headers TODO: Use JWT
Types ¶
type Credentials ¶
type Credentials struct { Username string `json:"username" binding:"required" ` Password string `json:"password" binding:"required" ` }
Credentials struct used to parse login requests
func (*Credentials) Encrypt ¶
func (c *Credentials) Encrypt(salt string)
Encrypt password using sha256
Click to show internal directories.
Click to hide internal directories.