Documentation
¶
Index ¶
- type APIGatewayCtor
- type CommandHandlerCtor
- type DataTransformerCtor
- type Plugin
- func (p *Plugin) Capabilities() []capability.Contract
- func (p *Plugin) ModuleFactories() map[string]plugin.ModuleFactory
- func (p *Plugin) ModuleSchemas() []*schema.ModuleSchema
- func (p *Plugin) WithAPIGatewayCtor(ctor APIGatewayCtor) *Plugin
- func (p *Plugin) WithCommandHandlerCtor(ctor CommandHandlerCtor) *Plugin
- func (p *Plugin) WithDataTransformerCtor(ctor DataTransformerCtor) *Plugin
- func (p *Plugin) WithProcessingStepCtor(ctor ProcessingStepCtor) *Plugin
- func (p *Plugin) WithQueryHandlerCtor(ctor QueryHandlerCtor) *Plugin
- func (p *Plugin) WithRESTAPIHandlerCtor(ctor RESTAPIHandlerCtor) *Plugin
- func (p *Plugin) WithWorkflowRegistryCtor(ctor WorkflowRegistryCtor) *Plugin
- type ProcessingStepCtor
- type QueryHandlerCtor
- type RESTAPIHandlerCtor
- type WorkflowRegistryCtor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIGatewayCtor ¶ added in v0.1.6
APIGatewayCtor creates an APIGateway-compatible modular.Module for the given name.
type CommandHandlerCtor ¶ added in v0.1.6
CommandHandlerCtor creates a CommandHandler-compatible modular.Module for the given name.
type DataTransformerCtor ¶ added in v0.1.6
DataTransformerCtor creates a DataTransformer-compatible modular.Module for the given name.
type Plugin ¶
type Plugin struct {
plugin.BaseEnginePlugin
// contains filtered or unexported fields
}
Plugin provides REST API and CQRS capabilities: api.query, api.command, api.handler, api.gateway, workflow.registry, data.transformer, and processing.step modules.
func New ¶
func New() *Plugin
New creates a new API plugin using the default concrete module constructors.
func (*Plugin) Capabilities ¶
func (p *Plugin) Capabilities() []capability.Contract
Capabilities returns the capability contracts this plugin defines.
func (*Plugin) ModuleFactories ¶
func (p *Plugin) ModuleFactories() map[string]plugin.ModuleFactory
ModuleFactories returns factories for all API module types. Each factory delegates construction to the injectable constructor stored on the Plugin, so callers can substitute implementations without modifying this file (see WithQueryHandlerCtor, WithCommandHandlerCtor, etc.). Post-construction config wiring uses interface assertions so that custom implementations only need to implement the methods they support.
func (*Plugin) ModuleSchemas ¶
func (p *Plugin) ModuleSchemas() []*schema.ModuleSchema
ModuleSchemas returns UI schema definitions for API module types.
func (*Plugin) WithAPIGatewayCtor ¶ added in v0.1.6
func (p *Plugin) WithAPIGatewayCtor(ctor APIGatewayCtor) *Plugin
WithAPIGatewayCtor overrides the constructor used to create api.gateway modules.
func (*Plugin) WithCommandHandlerCtor ¶ added in v0.1.6
func (p *Plugin) WithCommandHandlerCtor(ctor CommandHandlerCtor) *Plugin
WithCommandHandlerCtor overrides the constructor used to create api.command modules.
func (*Plugin) WithDataTransformerCtor ¶ added in v0.1.6
func (p *Plugin) WithDataTransformerCtor(ctor DataTransformerCtor) *Plugin
WithDataTransformerCtor overrides the constructor used to create data.transformer modules.
func (*Plugin) WithProcessingStepCtor ¶ added in v0.1.6
func (p *Plugin) WithProcessingStepCtor(ctor ProcessingStepCtor) *Plugin
WithProcessingStepCtor overrides the constructor used to create processing.step modules.
func (*Plugin) WithQueryHandlerCtor ¶ added in v0.1.6
func (p *Plugin) WithQueryHandlerCtor(ctor QueryHandlerCtor) *Plugin
WithQueryHandlerCtor overrides the constructor used to create api.query modules.
func (*Plugin) WithRESTAPIHandlerCtor ¶ added in v0.1.6
func (p *Plugin) WithRESTAPIHandlerCtor(ctor RESTAPIHandlerCtor) *Plugin
WithRESTAPIHandlerCtor overrides the constructor used to create api.handler modules.
func (*Plugin) WithWorkflowRegistryCtor ¶ added in v0.1.6
func (p *Plugin) WithWorkflowRegistryCtor(ctor WorkflowRegistryCtor) *Plugin
WithWorkflowRegistryCtor overrides the constructor used to create workflow.registry modules.
type ProcessingStepCtor ¶ added in v0.1.6
type ProcessingStepCtor func(name string, stepConfig module.ProcessingStepConfig) modular.Module
ProcessingStepCtor creates a ProcessingStep-compatible modular.Module. stepConfig is built from the factory's config map before calling this.
type QueryHandlerCtor ¶ added in v0.1.6
QueryHandlerCtor creates a QueryHandler-compatible modular.Module for the given name.
type RESTAPIHandlerCtor ¶ added in v0.1.6
RESTAPIHandlerCtor creates a RESTAPIHandler-compatible modular.Module. resourceName is extracted from config by the factory before calling this.
type WorkflowRegistryCtor ¶ added in v0.1.6
WorkflowRegistryCtor creates a WorkflowRegistry-compatible modular.Module. storageBackend is extracted from config by the factory before calling this.