filters

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2018 License: Apache-2.0, BSD-3-Clause, MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LoggingFilterName is the name of the logging filter
	LoggingFilterName = "LoggingFilter"
)

Variables

This section is empty.

Functions

func NewRecoveryMiddleware

func NewRecoveryMiddleware() mux.MiddlewareFunc

NewRecoveryMiddleware returns a standard mux middleware that provides panic recovery

Types

type FreeServicePlansFilter added in v0.1.6

type FreeServicePlansFilter struct {
	Repository storage.Repository
}

FreeServicePlansFilter reconciles the state of the free plans offered by all service brokers registered in SM. The filter makes sure that a public visibility exists for each free plan present in SM DB.

func (*FreeServicePlansFilter) FilterMatchers added in v0.1.6

func (fsp *FreeServicePlansFilter) FilterMatchers() []web.FilterMatcher

func (*FreeServicePlansFilter) Name added in v0.1.6

func (fsp *FreeServicePlansFilter) Name() string

func (*FreeServicePlansFilter) Run added in v0.1.6

func (fsp *FreeServicePlansFilter) Run(req *web.Request, next web.Handler) (*web.Response, error)

type Logging

type Logging struct {
}

Logging is filter that configures logging per request.

func (*Logging) FilterMatchers

func (*Logging) FilterMatchers() []web.FilterMatcher

FilterMatchers implements the web.Filter interface and returns the conditions on which the filter should be executed.

func (*Logging) Name

func (*Logging) Name() string

Name implements the web.Filter interface and returns the identifier of the filter.

func (*Logging) Run

func (l *Logging) Run(req *web.Request, next web.Handler) (*web.Response, error)

Run represents the logging middleware function that processes the request and configures the request-scoped logging.

Directories

Path Synopsis
authn

Jump to

Keyboard shortcuts

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