router

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

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 storage.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