Documentation ¶
Overview ¶
Package strategies contains the message creation strategies for entities and messages
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetEntityStrategy ¶
type GetEntityStrategy interface { GetEntity( ctx context.Context, entMsg *message.HandleEntityAndDoMessage, ) (*models.EntityWithProperties, error) GetName() string }
GetEntityStrategy is the interface for getting entities
type MessageCreateStrategy ¶
type MessageCreateStrategy interface { CreateMessage( ctx context.Context, ewp *models.EntityWithProperties, ) (*watermill.Message, error) GetName() string }
MessageCreateStrategy is the interface for creating messages
Click to show internal directories.
Click to hide internal directories.