middleware

package
v0.0.0-...-a894b33 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HerokuHttpsOnlyMiddlewareFunc

func HerokuHttpsOnlyMiddlewareFunc() mux.MiddlewareFunc

* Define a function to allow CORS Allow CORS here By * or specific origin

func MakeCORSMiddlewareFunc

func MakeCORSMiddlewareFunc() mux.MiddlewareFunc

* Define a function to allow CORS Allow CORS here By * or specific origin

func MakeJwtMiddlewareFunc

func MakeJwtMiddlewareFunc(router *routing.Router, userRepo users.Repo, permRepo roles.Repo, passHelper passwords.Helper) mux.MiddlewareFunc

* Define a function to handle checking for auth

Types

This section is empty.

Jump to

Keyboard shortcuts

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