Documentation
¶
Index ¶
- Constants
- type Option
- type PerToolRateLimiterData
- type Plugin
- func (p *Plugin) Execute(ctx context.Context, in appplugins.ExecInput) (*appplugins.Result, error)
- func (p *Plugin) MandatoryStages() []policy.Stage
- func (p *Plugin) MutatesMetadata() bool
- func (p *Plugin) MutatesRequestBody() bool
- func (p *Plugin) MutatesResponseBody() bool
- func (p *Plugin) Name() string
- func (p *Plugin) SupportedModes() []policy.Mode
- func (p *Plugin) SupportedStages() []policy.Stage
- func (p *Plugin) ValidateConfig(settings map[string]any) error
Constants ¶
View Source
const PluginName = "per_tool_rate_limiter"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PerToolRateLimiterData ¶
type PerToolRateLimiterData struct {
Stage string `json:"stage"`
CounterKey string `json:"counter_key"`
Tool string `json:"tool"`
Dimension string `json:"dimension"`
Subject string `json:"subject"`
WindowMax int `json:"window_max"`
WindowSeconds int `json:"window_seconds"`
CurrentCount int `json:"current_count"`
Behavior string `json:"behavior"`
LimitExceeded bool `json:"limit_exceeded"`
}
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) Execute ¶
func (p *Plugin) Execute(ctx context.Context, in appplugins.ExecInput) (*appplugins.Result, error)
func (*Plugin) MandatoryStages ¶
func (*Plugin) MutatesMetadata ¶ added in v0.2.3
func (*Plugin) MutatesRequestBody ¶ added in v0.2.3
func (*Plugin) MutatesResponseBody ¶ added in v0.2.3
func (*Plugin) SupportedModes ¶
func (*Plugin) SupportedStages ¶
Click to show internal directories.
Click to hide internal directories.