Documentation ¶
Index ¶
- func DefaultBlockFallback(ctx context.Context, req, resp interface{}, blockErr error) error
- func DefaultResourceExtract(ctx context.Context, req, resp interface{}) string
- func SentinelClientMiddleware(opts ...Option) func(endpoint.Endpoint) endpoint.Endpoint
- func SentinelServerMiddleware(opts ...Option) func(endpoint.Endpoint) endpoint.Endpoint
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultBlockFallback ¶
func DefaultResourceExtract ¶
func SentinelClientMiddleware ¶
SentinelClientMiddleware returns new client.Middleware Default resource name is {service's name}:{method} Default block fallback is returning blockError Define your own behavior by setting serverOptions
func SentinelServerMiddleware ¶
SentinelServerMiddleware returns new server.Middleware Default resource name is {service's name}:{method} Default block fallback is returning blockError Define your own behavior by setting serverOptions
Types ¶
Click to show internal directories.
Click to hide internal directories.