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 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
- func CircuitBreakerClient(selector selector.Selector) selector.Selector
- func JwtClient(selector selector.Selector, cfg *jwtv1.JWT) selector.Selector
- func JwtServer(selector selector.Selector, cfg *jwtv1.JWT) selector.Selector
- func LoggingClient(selector selector.Selector, logger log.Logger) selector.Selector
- func LoggingServer(selector selector.Selector, logger log.Logger) selector.Selector
- func MetadataClient(selector selector.Selector, cfg *middlewarev1.Middleware_Metadata) selector.Selector
- func MetadataServer(selector selector.Selector, cfg *middlewarev1.Middleware_Metadata) selector.Selector
- func RateLimitServer(selector selector.Selector, cfg *ratelimitv1.RateLimiter) selector.Selector
- func Recovery(selector selector.Selector) selector.Selector
- func Selector(cfg *selectorv1.Selector, matchFunc selector.MatchFunc) selector.Selector
- func TracingClient(selector selector.Selector) selector.Selector
- func TracingServer(selector selector.Selector) selector.Selector
- func Validate(selector selector.Selector, validator *validatorv1.Validator) selector.Selector
- func ValidateServer(selector selector.Selector, validator *validatorv1.Validator) selector.Selector
- type KHandler
- type KMiddleware
- type Middleware
- type Option
- type OptionSetting
Constants ¶
const Type = "middleware"
Variables ¶
This section is empty.
Functions ¶
func LoggingClient ¶ added in v0.1.15
func LoggingServer ¶ added in v0.1.15
func MetadataClient ¶
func MetadataClient(selector selector.Selector, cfg *middlewarev1.Middleware_Metadata) selector.Selector
func MetadataServer ¶
func MetadataServer(selector selector.Selector, cfg *middlewarev1.Middleware_Metadata) selector.Selector
func RateLimitServer ¶
func RateLimitServer(selector selector.Selector, cfg *ratelimitv1.RateLimiter) selector.Selector
func ValidateServer ¶ added in v0.0.12
Types ¶
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
type Middleware ¶
type Middleware struct { }
type OptionSetting ¶ added in v0.1.0
type OptionSetting = func(*Option)
func WithLogger ¶ added in v0.1.29
func WithLogger(logger log.Logger) OptionSetting
func WithMatchFunc ¶ added in v0.1.29
func WithMatchFunc(matchFunc selector.MatchFunc) 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 selector implements the functions, types, and interfaces for the module.
|
Package selector 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. |