controllers

package
v0.0.0-...-17d8374 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2021 License: MIT Imports: 12 Imported by: 1

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL