filter

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CorsFilter added in v1.3.2

type CorsFilter struct {
	bean.Component
}

func (*CorsFilter) DoFilter added in v1.3.2

func (c *CorsFilter) DoFilter(w http.ResponseWriter, r *http.Request, chain web.FilterChain) error

func (*CorsFilter) Order added in v1.3.2

func (c *CorsFilter) Order() int

func (*CorsFilter) UrlPatterns added in v1.3.2

func (c *CorsFilter) UrlPatterns() web.Patterns

type ErrorFilter

type ErrorFilter struct {
	bean.Component
	Log logging.Logger `bean:"log"`
}

func (*ErrorFilter) DoFilter

func (f *ErrorFilter) DoFilter(w http.ResponseWriter, r *http.Request, chain web.FilterChain) error

func (*ErrorFilter) Order

func (f *ErrorFilter) Order() int

func (*ErrorFilter) UrlPatterns

func (f *ErrorFilter) UrlPatterns() web.Patterns

type FirstFilter

type FirstFilter struct {
	bean.Component
	Log logging.Logger
}

func (*FirstFilter) DoFilter

func (f *FirstFilter) DoFilter(w http.ResponseWriter, r *http.Request, chain web.FilterChain) error

func (*FirstFilter) Order

func (f *FirstFilter) Order() int

func (*FirstFilter) UrlPatterns

func (f *FirstFilter) UrlPatterns() web.Patterns

type NotFountError

type NotFountError struct {
}

func (NotFountError) Error

func (n NotFountError) Error() string

type TestFilter

type TestFilter struct {
	bean.Component
	Log logging.Logger `bean:"log"`
}

func (*TestFilter) DoFilter

func (f *TestFilter) DoFilter(w http.ResponseWriter, r *http.Request, filterChan web.FilterChain) error

func (*TestFilter) Order

func (f *TestFilter) Order() int

func (*TestFilter) UrlPatterns

func (f *TestFilter) UrlPatterns() web.Patterns

Jump to

Keyboard shortcuts

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