Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandHandlers ¶
type CommandHandlers struct { Upsert UpsertContactCommandHandler LinkPhoneNumber LinkPhoneNumberCommandHandler LinkEmail LinkEmailCommandHandler LinkLocation LinkLocationCommandHandler LinkOrganization LinkOrganizationCommandHandler }
func NewCommandHandlers ¶
func NewCommandHandlers(log logger.Logger, es eventstore.AggregateStore) *CommandHandlers
type LinkEmailCommandHandler ¶
type LinkEmailCommandHandler interface {
Handle(ctx context.Context, cmd *command.LinkEmailCommand) error
}
func NewLinkEmailCommandHandler ¶
func NewLinkEmailCommandHandler(log logger.Logger, es eventstore.AggregateStore) LinkEmailCommandHandler
type LinkLocationCommandHandler ¶
type LinkLocationCommandHandler interface {
Handle(ctx context.Context, command *command.LinkLocationCommand) error
}
func NewLinkLocationCommandHandler ¶
func NewLinkLocationCommandHandler(log logger.Logger, es eventstore.AggregateStore) LinkLocationCommandHandler
type LinkOrganizationCommandHandler ¶
type LinkOrganizationCommandHandler interface {
Handle(ctx context.Context, command *command.LinkOrganizationCommand) error
}
func NewLinkOrganizationCommandHandler ¶
func NewLinkOrganizationCommandHandler(log logger.Logger, es eventstore.AggregateStore) LinkOrganizationCommandHandler
type LinkPhoneNumberCommandHandler ¶
type LinkPhoneNumberCommandHandler interface {
Handle(ctx context.Context, cmd *command.LinkPhoneNumberCommand) error
}
func NewLinkPhoneNumberCommandHandler ¶
func NewLinkPhoneNumberCommandHandler(log logger.Logger, es eventstore.AggregateStore) LinkPhoneNumberCommandHandler
type UpsertContactCommandHandler ¶
type UpsertContactCommandHandler interface {
Handle(ctx context.Context, cmd *command.UpsertContactCommand) error
}
func NewUpsertContactCommandHandler ¶
func NewUpsertContactCommandHandler(log logger.Logger, es eventstore.AggregateStore) UpsertContactCommandHandler
Click to show internal directories.
Click to hide internal directories.