Documentation ¶
Index ¶
- Constants
- Variables
- func ConfigureRouteFilter(settings *local_ratelimit.Settings, ...) error
- func ConfigureVirtualHostFilter(settings *local_ratelimit.Settings, ...) error
- func GenerateHTTPFilter(settings *local_ratelimit.Settings, ...) (*envoy_extensions_filters_http_local_ratelimit_v3.LocalRateLimit, error)
- func NewPlugin() *plugin
Constants ¶
View Source
const ( ExtensionName = "local_ratelimit" NetworkFilterStatPrefix = "network_local_ratelimit" HTTPFilterStatPrefix = "http_local_ratelimit" NetworkFilterName = "envoy.filters.network.local_ratelimit" HTTPFilterName = "envoy.filters.http.local_ratelimit" CustomStageBeforeAuth = uint32(3) )
Variables ¶
View Source
var (
ErrConfigurationExists = errors.New("configuration already exists")
)
Functions ¶
func ConfigureRouteFilter ¶
func ConfigureRouteFilter(settings *local_ratelimit.Settings, localRatelimit *local_ratelimit.TokenBucket, stage uint32, out *envoy_config_route_v3.Route) error
This function exported since it is used in the enterprise plugin
func ConfigureVirtualHostFilter ¶
func ConfigureVirtualHostFilter(settings *local_ratelimit.Settings, localRatelimit *local_ratelimit.TokenBucket, stage uint32, out *envoy_config_route_v3.VirtualHost) error
This function exported since it is used in the enterprise plugin
func GenerateHTTPFilter ¶
func GenerateHTTPFilter(settings *local_ratelimit.Settings, localRatelimit *local_ratelimit.TokenBucket, stage uint32) (*envoy_extensions_filters_http_local_ratelimit_v3.LocalRateLimit, error)
This function exported since it is used in the enterprise plugin
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.