Documentation
¶
Index ¶
- func New() plugin.Handler
- type Config
- type ExamplePlugin
- func (p *ExamplePlugin) Cleanup() error
- func (p *ExamplePlugin) Name() string
- func (p *ExamplePlugin) Priority() int
- func (p *ExamplePlugin) ProcessRequest(ctx context.Context, req *http.Request) *plugin.Result
- func (p *ExamplePlugin) ProcessResponse(ctx context.Context, resp *http.Response) *plugin.Result
- type Logger
- type RateLimitData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ExamplePlugin ¶
type ExamplePlugin struct {
// contains filtered or unexported fields
}
func (*ExamplePlugin) Cleanup ¶
func (p *ExamplePlugin) Cleanup() error
func (*ExamplePlugin) Name ¶
func (p *ExamplePlugin) Name() string
Required plugin interface methods
func (*ExamplePlugin) Priority ¶
func (p *ExamplePlugin) Priority() int
func (*ExamplePlugin) ProcessRequest ¶
ProcessRequest handles incoming requests
func (*ExamplePlugin) ProcessResponse ¶
ProcessResponse handles outgoing responses
type RateLimitData ¶
type RateLimitData struct {
// contains filtered or unexported fields
}
RateLimitData tracks rate limiting data
Click to show internal directories.
Click to hide internal directories.