middleware

package
v0.0.0-...-f60b94f Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AwsXray

func AwsXray(next http.Handler) http.Handler

func GetPassword

func GetPassword(r *http.Request) string

func GetUsernameHash

func GetUsernameHash(r *http.Request) string

func Headers

func Headers(next http.Handler) http.Handler

func RecordRequest

func RecordRequest(next http.Handler) http.Handler

func Sentry

func Sentry(next http.Handler) http.Handler

Types

type AuthAPI

type AuthAPI interface {
	Authenticate(username string, password string) (bool, string, error)
}

type AuthMiddleware

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

func NewAuthMiddleware

func NewAuthMiddleware(api AuthAPI) *AuthMiddleware

func (*AuthMiddleware) Authentication

func (a *AuthMiddleware) Authentication(next http.Handler) http.Handler

Jump to

Keyboard shortcuts

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