View Source Blunt.DispatchStrategy.PipelineResolver.Default (blunt v0.1.1)

Resolves CommandPipelines and QueryPipelines by convention.

Pipeline modules are meant to be named "Namespace.MessagePipeline". That is, the message module with "Pipeline" appended to the end.

Link to this section Summary

Link to this section Types

Specs

message_module() :: atom()

Specs

message_type() :: atom()

Specs

pipeline_module() :: atom()

Link to this section Functions

Link to this function

resolve(message_type, message_module)

View Source

Specs

resolve(message_type(), message_module()) :: {:ok, pipeline_module()} | :error

Callback implementation for Blunt.DispatchStrategy.PipelineResolver.resolve/2.