Documentation
¶
Overview ¶
Package plugins contains built-in plugins for the ika API Gateway.
Index ¶
- type ReqModifier
- func (rm *ReqModifier) ModifyRequest(r *http.Request) error
- func (*ReqModifier) Name() string
- func (*ReqModifier) New(_ context.Context, _ ika.InjectionContext) (ika.Plugin, error)
- func (rm *ReqModifier) Setup(ctx context.Context, ictx ika.InjectionContext, config map[string]any) error
- func (*ReqModifier) Teardown(context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReqModifier ¶
type ReqModifier struct {
// contains filtered or unexported fields
}
ReqModifier is a ReqModifier that 100% accurately rewrite the request path. This includes totally preserving the original path even if some parts have been encoded.
func (*ReqModifier) ModifyRequest ¶
func (rm *ReqModifier) ModifyRequest(r *http.Request) error
func (*ReqModifier) Name ¶
func (*ReqModifier) Name() string
func (*ReqModifier) New ¶
func (*ReqModifier) New(_ context.Context, _ ika.InjectionContext) (ika.Plugin, error)
func (*ReqModifier) Setup ¶
func (rm *ReqModifier) Setup(ctx context.Context, ictx ika.InjectionContext, config map[string]any) error
Click to show internal directories.
Click to hide internal directories.