Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HttpFlowControl ¶
func HttpFlowControl(opts ...Option) echo.MiddlewareFunc
参考:https://github.com/alibaba/sentinel-golang/blob/master/pkg/adapters/echo/middleware.go todo 针对QPS 设置警告值
Types ¶
type Option ¶
type Option func(*options)
func WithBlockFallback ¶
WithBlockFallback sets the fallback handler when requests are blocked.
Click to show internal directories.
Click to hide internal directories.