middleware

package
v0.0.0-...-b9f111c Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2015 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MainMiddleware

func MainMiddleware(authService services.AuthService, config *gophers.Config) *negroni.Negroni

func NewAuth

func NewAuth(authService services.AuthService) negroni.Handler

Types

type BasicAuthMiddleware

type BasicAuthMiddleware struct {
	AuthService services.AuthService
	//UpHashed    map[string]string
	Realm string
}

func (BasicAuthMiddleware) ServeHTTP

func (bam BasicAuthMiddleware) ServeHTTP(resp http.ResponseWriter, req *http.Request, next http.HandlerFunc)

WARNING this is not fully tested. We don't use this in production. (we use oauth)

Jump to

Keyboard shortcuts

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