Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CIDRCheck ¶
type CIDRCheck struct {
// contains filtered or unexported fields
}
func (*CIDRCheck) InjectClientIPMiddleware ¶ added in v0.1.5
type ContextKey ¶ added in v0.1.5
type ContextKey string
const (
ClientIPContextKey ContextKey = "ClientIPContextKey"
)
type TokenProvider ¶
type UnauthMiddleware ¶
type UnauthMiddleware struct {
// contains filtered or unexported fields
}
func NewUnauthMiddleware ¶
func NewUnauthMiddleware(upstream *url.URL, tokenProvider TokenProvider) *UnauthMiddleware
func (*UnauthMiddleware) Middleware ¶
func (um *UnauthMiddleware) Middleware() func(next http.Handler) http.Handler
Click to show internal directories.
Click to hide internal directories.