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 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 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 Filter
- func CircuitBreakerClient(f Filter) Filter
- func JwtClient(f Filter, cfg *jwtv1.JWT) Filter
- func JwtServer(f Filter, cfg *jwtv1.JWT) Filter
- func LoggingClient(f Filter, logger log.Logger) Filter
- func LoggingServer(f Filter, logger log.Logger) Filter
- func MakeFilter(keys []string) Filter
- func MetadataClient(f Filter, cfg *middlewarev1.Middleware_Metadata) Filter
- func MetadataServer(f Filter, cfg *middlewarev1.Middleware_Metadata) Filter
- func RateLimitServer(f Filter, cfg *ratelimitv1.RateLimiter) Filter
- func Recovery(f Filter) Filter
- func TracingClient(f Filter) Filter
- func TracingServer(f Filter) Filter
- func Validate(f Filter, validator *validatorv1.Validator) Filter
- func ValidateServer(f Filter, validator *validatorv1.Validator) Filter
- type KHandler
- type KMiddleware
- func Chain(m ...KMiddleware) KMiddleware
- func NewClient(cfg *middlewarev1.Middleware, ss ...OptionSetting) []KMiddleware
- func NewServer(cfg *middlewarev1.Middleware, ss ...OptionSetting) []KMiddleware
- func SelectorClient(f Filter, cfg *selectorv1.Selector, matchFunc selector.MatchFunc) []KMiddleware
- func SelectorServer(f Filter, cfg *selectorv1.Selector, matchFunc selector.MatchFunc) []KMiddleware
- type Middleware
- type Option
- type OptionSetting
Constants ¶
const Type = "middleware"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filter ¶ added in v0.1.15
type Filter interface { Filter(key string, m KMiddleware) Filter All() []KMiddleware Filtered() []KMiddleware Total() int }
func CircuitBreakerClient ¶
func MakeFilter ¶ added in v0.1.15
func MetadataClient ¶
func MetadataClient(f Filter, cfg *middlewarev1.Middleware_Metadata) Filter
func MetadataServer ¶
func MetadataServer(f Filter, cfg *middlewarev1.Middleware_Metadata) Filter
func RateLimitServer ¶
func RateLimitServer(f Filter, cfg *ratelimitv1.RateLimiter) Filter
func TracingClient ¶
func TracingServer ¶
func Validate ¶
func Validate(f Filter, validator *validatorv1.Validator) Filter
Validate is a middleware validator. Deprecated: use ValidateServer
func ValidateServer ¶ added in v0.0.12
func ValidateServer(f Filter, validator *validatorv1.Validator) Filter
type KHandler ¶ added in v0.1.18
type KHandler = middleware.Handler
type KMiddleware ¶ added in v0.1.18
type KMiddleware = middleware.Middleware
func Chain ¶
func Chain(m ...KMiddleware) KMiddleware
Chain returns a middleware that executes a chain of middleware.
func NewClient ¶
func NewClient(cfg *middlewarev1.Middleware, ss ...OptionSetting) []KMiddleware
NewClient creates a new client with the given configuration
func NewServer ¶
func NewServer(cfg *middlewarev1.Middleware, ss ...OptionSetting) []KMiddleware
NewServer creates a new server with the given configuration
func SelectorClient ¶ added in v0.1.15
func SelectorClient(f Filter, cfg *selectorv1.Selector, matchFunc selector.MatchFunc) []KMiddleware
func SelectorServer ¶ added in v0.1.15
func SelectorServer(f Filter, cfg *selectorv1.Selector, matchFunc selector.MatchFunc) []KMiddleware
type Middleware ¶
type Middleware struct { }
type OptionSetting ¶ added in v0.1.0
type OptionSetting = func(*Option)
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 validate implements the functions, types, and interfaces for the module.
|
Package validate implements the functions, types, and interfaces for the module. |