Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockServiceStep ¶
type MockServiceStep struct{}
MockServiceStep is factory that defines a step responsible for discovering a mock response for the incoming request
func (MockServiceStep) Do ¶
func (step MockServiceStep) Do(ctx context.Context, proxy *spec.APIProxy, m *metrics.Metrics, w http.ResponseWriter, r *http.Request, resp *http.Response, trace opentracing.Span) error
Do executes the logic of the MockServiceStep step
func (MockServiceStep) GetName ¶
func (step MockServiceStep) GetName() string
GetName retruns the name of the MockServiceStep step
type PluginsOnRequestStep ¶
type PluginsOnRequestStep struct{}
PluginsOnRequestStep is factory that defines a step responsible for executing the on request lifecycle hook for all the defined plugins
func (PluginsOnRequestStep) Do ¶
func (step PluginsOnRequestStep) Do(ctx context.Context, proxy *spec.APIProxy, m *metrics.Metrics, w http.ResponseWriter, r *http.Request, resp *http.Response, trace opentracing.Span) error
Do executes the logic of the PluginsOnRequestStep step
func (PluginsOnRequestStep) GetName ¶
func (step PluginsOnRequestStep) GetName() string
GetName retruns the name of the PluginsOnRequestStep step
type PluginsOnResponseStep ¶
type PluginsOnResponseStep struct{}
PluginsOnResponseStep is factory that defines a step responsible for executing the on response lifecycle hook for all the defined plugins
func (PluginsOnResponseStep) Do ¶
func (step PluginsOnResponseStep) Do(ctx context.Context, proxy *spec.APIProxy, m *metrics.Metrics, w http.ResponseWriter, r *http.Request, resp *http.Response, trace opentracing.Span) error
Do executes the logic of the PluginsOnResponseStep step
func (PluginsOnResponseStep) GetName ¶
func (step PluginsOnResponseStep) GetName() string
GetName retruns the name of the PluginsOnResponseStep step
type ProxyPassStep ¶
type ProxyPassStep struct{}
ProxyPassStep is factory that defines a step responsible for configuring and performing a proxy to a dynamic upstream service
func (ProxyPassStep) Do ¶
func (step ProxyPassStep) Do(ctx context.Context, proxy *spec.APIProxy, m *metrics.Metrics, w http.ResponseWriter, r *http.Request, resp *http.Response, span opentracing.Span) error
Do executes the logic of the ProxyPassStep step
func (ProxyPassStep) GetName ¶
func (step ProxyPassStep) GetName() string
GetName retruns the name of the ProxyPassStep step
type ValidateProxyStep ¶
type ValidateProxyStep struct{}
ValidateProxyStep is factory that defines a step responsible for validating that an incoming request matches a proxy that Kanali has stored in memory
func (ValidateProxyStep) Do ¶
func (step ValidateProxyStep) Do(ctx context.Context, proxy *spec.APIProxy, m *metrics.Metrics, w http.ResponseWriter, r *http.Request, resp *http.Response, trace opentracing.Span) error
Do executes the logic of the ValidateProxyStep step
func (ValidateProxyStep) GetName ¶
func (step ValidateProxyStep) GetName() string
GetName retruns the name of the ValidateProxyStep step
type WriteResponseStep ¶
type WriteResponseStep struct{}
WriteResponseStep is factory that defines a step responsible for writing an HTTP response
func (WriteResponseStep) Do ¶
func (step WriteResponseStep) Do(ctx context.Context, proxy *spec.APIProxy, m *metrics.Metrics, w http.ResponseWriter, r *http.Request, resp *http.Response, span opentracing.Span) error
Do executes the logic of the WriteResponseStep step
func (WriteResponseStep) GetName ¶
func (step WriteResponseStep) GetName() string
GetName retruns the name of the WriteResponseStep step