CommandedAggregateless. Command. CommandProtocol protocol
(commanded_aggregateless v1.0.0)
Copy Markdown
Protocol to be implemented by all command modules
Summary
Types
@type t() :: term()
All the types that implement this protocol.
Functions
@spec authorize(t()) :: CommandedAggregateless.Command.authorization_result()
Authorizes a command
See CommandedAggregateless.Command.AuthorizationMiddleware for more information.
@spec validate(t()) :: CommandedAggregateless.Command.validation_result()
Validates the data in a command
See CommandedAggregateless.Command.ValidationMiddleware for more information.