Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloseLooseOpportunityCommandHandler ¶
type CloseLooseOpportunityCommandHandler interface {
Handle(ctx context.Context, cmd *command.CloseLooseOpportunityCommand) error
}
func NewCloseLooseOpportunityCommandHandler ¶
func NewCloseLooseOpportunityCommandHandler(log logger.Logger, es eventstore.AggregateStore, cfg config.Utils) CloseLooseOpportunityCommandHandler
type CloseWinOpportunityCommandHandler ¶
type CloseWinOpportunityCommandHandler interface {
Handle(ctx context.Context, cmd *command.CloseWinOpportunityCommand) error
}
func NewCloseWinOpportunityCommandHandler ¶
func NewCloseWinOpportunityCommandHandler(log logger.Logger, es eventstore.AggregateStore, cfg config.Utils) CloseWinOpportunityCommandHandler
type CommandHandlers ¶
type CommandHandlers struct { CreateOpportunity CreateOpportunityCommandHandler UpdateOpportunity UpdateOpportunityCommandHandler UpdateRenewalOpportunityNextCycleDate UpdateRenewalOpportunityNextCycleDateCommandHandler CloseWinOpportunity CloseWinOpportunityCommandHandler CloseLooseOpportunity CloseLooseOpportunityCommandHandler }
CommandHandlers acts as a container for all command handlers.
func NewCommandHandlers ¶
func NewCommandHandlers(log logger.Logger, cfg *config.Config, es eventstore.AggregateStore) *CommandHandlers
type CreateOpportunityCommandHandler ¶
type CreateOpportunityCommandHandler interface {
Handle(ctx context.Context, cmd *command.CreateOpportunityCommand) error
}
CreateOpportunityCommandHandler defines the interface for a handler that can process CreateOpportunityCommands.
func NewCreateOpportunityCommandHandler ¶
func NewCreateOpportunityCommandHandler(log logger.Logger, es eventstore.AggregateStore) CreateOpportunityCommandHandler
NewCreateOpportunityCommandHandler creates a new handler for creating opportunities.
type UpdateOpportunityCommandHandler ¶
type UpdateOpportunityCommandHandler interface {
Handle(ctx context.Context, cmd *command.UpdateOpportunityCommand) error
}
func NewUpdateOpportunityCommandHandler ¶
func NewUpdateOpportunityCommandHandler(log logger.Logger, es eventstore.AggregateStore, cfg config.Utils) UpdateOpportunityCommandHandler
type UpdateRenewalOpportunityNextCycleDateCommandHandler ¶
type UpdateRenewalOpportunityNextCycleDateCommandHandler interface {
Handle(ctx context.Context, cmd *command.UpdateRenewalOpportunityNextCycleDateCommand) error
}
func NewUpdateRenewalOpportunityNextCycleDateCommandHandler ¶
func NewUpdateRenewalOpportunityNextCycleDateCommandHandler(log logger.Logger, es eventstore.AggregateStore, cfg config.Utils) UpdateRenewalOpportunityNextCycleDateCommandHandler
Click to show internal directories.
Click to hide internal directories.