middleware

package
v0.0.0-...-720a7c6 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(next http.Handler) http.Handler

Auth middleware authenticates request

func Final

func Final(proxy *httputil.ReverseProxy) http.Handler

Final middleware forwards request to orgin

func FraudChecker

func FraudChecker(next http.Handler) http.Handler

FraudChecker middleware checks if the request is fradulent.

func Logger

func Logger(next http.Handler) http.Handler

Logger middleware logs orgin's request

func TimeoutHandler

func TimeoutHandler(h http.Handler) http.Handler

TimeoutHandler is a customer timeout handler which return 504 when middlewares or origin does not respond with http.Server.WriteTimeout

Types

type Customer

type Customer struct {
	CIF int64
	// contains filtered or unexported fields
}

Customer type represents a customer

Jump to

Keyboard shortcuts

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