CommandedAggregateless.Command.CommandProtocol protocol (commanded_aggregateless v1.0.0)

Copy Markdown

Protocol to be implemented by all command modules

Summary

Types

t()

All the types that implement this protocol.

Functions

Authorizes a command

Validates the data in a command

Types

t()

@type t() :: term()

All the types that implement this protocol.

Functions

authorize(command)

Authorizes a command

See CommandedAggregateless.Command.AuthorizationMiddleware for more information.

validate(command)

Validates the data in a command

See CommandedAggregateless.Command.ValidationMiddleware for more information.