Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Interface ¶
type Interface interface {
// Allow tests whether the given request is allowed to execute. This method can return
// errors that implement the go-kit interfaces, e.g. StatusCoder.
Allow(*http.Request) error
}
Interface is essentially a predicate that determines whether a request is allowed.
type Option ¶
type Option func(*constructor)
Option is a configuration option for a filter constructor
func WithErrorEncoder ¶
func WithErrorEncoder(ee gokithttp.ErrorEncoder) Option
func WithFilters ¶
Click to show internal directories.
Click to hide internal directories.