Documentation ¶
Overview ¶
Package middleware implements the functions, types, and interfaces for the module.
Package middleware implements the functions, types, and interfaces for the module.
Package middlewares implements the functions, types, and interfaces for the module.
Package middleware implements the functions, types, and interfaces for the module.
Package middleware implements the functions, types, and interfaces for the module.
Package middleware implements the functions, types, and interfaces for the module.
Package middleware implements the functions, types, and interfaces for the module.
Package middleware implements the functions, types, and interfaces for the module.
Index ¶
- Constants
- type ContextType
- type Handler
- type Middleware
- func Chain(m ...Middleware) Middleware
- func CircuitBreakerClient(ms []Middleware, ok bool) []Middleware
- func MetadataClient(ms []Middleware, ok bool, cmm *configv1.Middleware_Metadata) []Middleware
- func MetadataServer(ms []Middleware, ok bool, cmm *configv1.Middleware_Metadata) []Middleware
- func NewClient(cfg *configv1.Middleware, ss ...OptionSetting) []Middleware
- func NewServer(cfg *configv1.Middleware, ss ...OptionSetting) []Middleware
- func RateLimitServer(ms []Middleware, cfg *configv1.Middleware_RateLimiter) []Middleware
- func Recovery(ms []Middleware, ok bool) []Middleware
- func Security(middlewares []Middleware, cfg *configv1.Security, ss ...security.OptionSetting) []Middleware
- func SecurityClient(middlewares []Middleware, cfg *configv1.Security, ss ...security.OptionSetting) []Middleware
- func SecurityServer(middlewares []Middleware, cfg *configv1.Security, ss ...security.OptionSetting) []Middleware
- func SkipperClient(middlewares []Middleware, cfg *configv1.Security, ss ...security.OptionSetting) []Middleware
- func TracingClient(ms []Middleware, ok bool) []Middleware
- func TracingServer(ms []Middleware, ok bool) []Middleware
- func Validate(ms []Middleware, ok bool, validator *configv1.Middleware_Validator) []Middleware
- func ValidateServer(ms []Middleware, ok bool, validator *configv1.Middleware_Validator) []Middleware
- type Option
- type OptionSetting
Constants ¶
const ( ContextTypeGrpc = iota ContextTypeMetaData )
const Type = "middleware"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextType ¶ added in v0.1.0
type ContextType int
type Handler ¶
type Handler = middleware.Handler
type Middleware ¶
type Middleware = middleware.Middleware
func Chain ¶
func Chain(m ...Middleware) Middleware
Chain returns a middleware that executes a chain of middleware.
func CircuitBreakerClient ¶
func CircuitBreakerClient(ms []Middleware, ok bool) []Middleware
func MetadataClient ¶
func MetadataClient(ms []Middleware, ok bool, cmm *configv1.Middleware_Metadata) []Middleware
func MetadataServer ¶
func MetadataServer(ms []Middleware, ok bool, cmm *configv1.Middleware_Metadata) []Middleware
func NewClient ¶
func NewClient(cfg *configv1.Middleware, ss ...OptionSetting) []Middleware
NewClient creates a new client with the given configuration
func NewServer ¶
func NewServer(cfg *configv1.Middleware, ss ...OptionSetting) []Middleware
NewServer creates a new server with the given configuration
func RateLimitServer ¶
func RateLimitServer(ms []Middleware, cfg *configv1.Middleware_RateLimiter) []Middleware
func Recovery ¶
func Recovery(ms []Middleware, ok bool) []Middleware
func Security ¶ added in v0.1.5
func Security(middlewares []Middleware, cfg *configv1.Security, ss ...security.OptionSetting) []Middleware
func SecurityClient ¶ added in v0.0.12
func SecurityClient(middlewares []Middleware, cfg *configv1.Security, ss ...security.OptionSetting) []Middleware
func SecurityServer ¶ added in v0.0.12
func SecurityServer(middlewares []Middleware, cfg *configv1.Security, ss ...security.OptionSetting) []Middleware
func SkipperClient ¶ added in v0.1.5
func SkipperClient(middlewares []Middleware, cfg *configv1.Security, ss ...security.OptionSetting) []Middleware
func TracingClient ¶
func TracingClient(ms []Middleware, ok bool) []Middleware
func TracingServer ¶
func TracingServer(ms []Middleware, ok bool) []Middleware
func Validate ¶
func Validate(ms []Middleware, ok bool, validator *configv1.Middleware_Validator) []Middleware
Validate is a middleware validator. Deprecated: use ValidateServer
func ValidateServer ¶ added in v0.0.12
func ValidateServer(ms []Middleware, ok bool, validator *configv1.Middleware_Validator) []Middleware
type Option ¶ added in v0.1.0
type Option struct {
// contains filtered or unexported fields
}
func (Option) Securities ¶ added in v0.1.5
func (o Option) Securities() []security.OptionSetting
type OptionSetting ¶ added in v0.1.0
type OptionSetting = func(*Option)
func WithSecurityOptions ¶ added in v0.1.0
func WithSecurityOptions(ss ...security.OptionSetting) OptionSetting
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package empty implements the functions, types, and interfaces for the module.
|
Package empty implements the functions, types, and interfaces for the module. |
Package optimize implements the functions, types, and interfaces for the module.
|
Package optimize implements the functions, types, and interfaces for the module. |
Package security implements the functions, types, and interfaces for the module.
|
Package security implements the functions, types, and interfaces for the module. |
Package validate implements the functions, types, and interfaces for the module.
|
Package validate implements the functions, types, and interfaces for the module. |