server

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCORS

func NewCORS() *cors.Cors

func NewNeroni

func NewNeroni(c *cors.Cors, cfg *conf.Config) *negroni.Negroni

Types

type JWTMiddleware

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

func NewJWTMiddleware

func NewJWTMiddleware(cfg *conf.Config) *JWTMiddleware

func (*JWTMiddleware) Validate

func (j *JWTMiddleware) Validate(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)

Jump to

Keyboard shortcuts

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