router

package
v0.0.0-...-9e72f66 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(s db.Store) negroni.HandlerFunc

Auth is a middleware that checks for a valid JWT token

func CORS

func CORS(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)

CORS ...

func LimitHandler

func LimitHandler() negroni.HandlerFunc

LimitHandler ...

func Secure

func Secure(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)

Secure ...

Types

type Router

type Router struct {
	// contains filtered or unexported fields
}

Router ...

func New

func New(s db.Store) *Router

New ...

func (*Router) ServeHTTP

func (r *Router) ServeHTTP(w http.ResponseWriter, req *http.Request)

ServeHTTP ...

Jump to

Keyboard shortcuts

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