minos.networks.decorators.factories
Classes
Enroute factory class. |
- class EnrouteFactory[source]
Bases:
object
Enroute factory class.
- get_rest_command_query(**kwargs)[source]
Get the rest actions for commands and queries.
- Returns
A dictionary with decorator classes as keys and callable actions as values.
- Return type
dict[minos.networks.decorators.definitions.http.rest.RestEnrouteDecorator, collections.abc.Callable[[minos.networks.requests.abc.Request], collections.abc.Awaitable[Optional[minos.networks.requests.abc.Response]]]]
- get_broker_command_query_event(**kwargs)[source]
Get the broker actions for commands, queries and events.
- Returns
A dictionary with decorator classes as keys and callable actions as values.
- Return type
dict[minos.networks.decorators.definitions.broker.BrokerEnrouteDecorator, collections.abc.Callable[[minos.networks.requests.abc.Request], collections.abc.Awaitable[Optional[minos.networks.requests.abc.Response]]]]
- get_broker_command_query(**kwargs)[source]
Get the broker actions for commands and queries.
- Returns
A dictionary with decorator classes as keys and callable actions as values.
- Return type
dict[minos.networks.decorators.definitions.broker.BrokerEnrouteDecorator, collections.abc.Callable[[minos.networks.requests.abc.Request], collections.abc.Awaitable[Optional[minos.networks.requests.abc.Response]]]]
- get_broker_event(**kwargs)[source]
Get the broker actions for events.
- Returns
A dictionary with decorator classes as keys and callable actions as values.
- Return type
dict[minos.networks.decorators.definitions.broker.BrokerEnrouteDecorator, collections.abc.Callable[[minos.networks.requests.abc.Request], collections.abc.Awaitable[Optional[minos.networks.requests.abc.Response]]]]
- get_periodic_event(**kwargs)[source]
Get the periodic actions for events.
- Returns
A dictionary with decorator classes as keys and callable actions as values.
- Return type
dict[minos.networks.decorators.definitions.periodic.PeriodicEnrouteDecorator, collections.abc.Callable[[minos.networks.requests.abc.Request], collections.abc.Awaitable[Optional[minos.networks.requests.abc.Response]]]]
- get_all(**kwargs)[source]
Get the rest actions for commands and queries.
- Returns
A dictionary with decorator classes as keys and callable actions as values.
- Return type
dict[minos.networks.decorators.definitions.abc.EnrouteDecorator, collections.abc.Callable[[minos.networks.requests.abc.Request], collections.abc.Awaitable[Optional[minos.networks.requests.abc.Response]]]]