Module plugin

Module plugin 

Source
Expand description

Plugin system for the router.

Provides a customization mechanism for the router.

Requests received by the router make their way through a processing pipeline. Each request is processed at:

  • router
  • execution
  • subgraph (multiple in parallel if multiple subgraphs are accessed)

stages.

A plugin can choose to interact with the flow of requests at any or all of these stages of processing. At each stage a Service is provided which provides an appropriate mechanism for interacting with the request and response.

Modules§

serde
serde support for commonly used data structures.
test
Utilities which make it easy to test with crate::plugin.

Structs§

PluginFactory
Factories for plugin schema and configuration.
PluginInit
Initialise details for a plugin

Statics§

PLUGINS
Global list of plugins.

Traits§

Plugin
All router plugins must implement the Plugin trait.
PluginUnstable
Plugin trait for unstable features

Type Aliases§

FakeNewBuilderPluginInitBuilder
Autogenerated by buildstructor
NewBuilderPluginInitBuilder
Autogenerated by buildstructor
TryNewBuilderPluginInitBuilder
Autogenerated by buildstructor