Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct { }
func (Controller) Login ¶
func (c Controller) Login(db *sql.DB) http.HandlerFunc
Login endpoint handled verifying the user and generating a token for the user's login
func (Controller) ProtectedEndPoint ¶
func (c Controller) ProtectedEndPoint() http.HandlerFunc
func (Controller) Signup ¶
func (c Controller) Signup(db *sql.DB) http.HandlerFunc
Signup endpoint handled creating a user
func (Controller) TokenVerifyMiddleWare ¶
func (c Controller) TokenVerifyMiddleWare(next http.HandlerFunc) http.HandlerFunc
TokenVerifyMiddleWare will verify the token provided, so it will direct to the next protected endpoint
Click to show internal directories.
Click to hide internal directories.