command_handler

package
v0.0.0-...-af7f365 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

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
}

type CloseWinOpportunityCommandHandler

type CloseWinOpportunityCommandHandler interface {
	Handle(ctx context.Context, cmd *command.CloseWinOpportunityCommand) error
}

type CommandHandlers

type CommandHandlers struct {
	CreateOpportunity                     CreateOpportunityCommandHandler
	UpdateOpportunity                     UpdateOpportunityCommandHandler
	UpdateRenewalOpportunityNextCycleDate UpdateRenewalOpportunityNextCycleDateCommandHandler
	CloseWinOpportunity                   CloseWinOpportunityCommandHandler
	CloseLooseOpportunity                 CloseLooseOpportunityCommandHandler
}

CommandHandlers acts as a container for all command handlers.

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
}

type UpdateRenewalOpportunityNextCycleDateCommandHandler

type UpdateRenewalOpportunityNextCycleDateCommandHandler interface {
	Handle(ctx context.Context, cmd *command.UpdateRenewalOpportunityNextCycleDateCommand) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL