-
Notifications
You must be signed in to change notification settings - Fork 12
/
command_handlers.go
24 lines (21 loc) · 1 KB
/
command_handlers.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package command_handler
import (
"github.com/openline-ai/openline-customer-os/packages/server/events-processing-platform/eventstore"
"github.com/openline-ai/openline-customer-os/packages/server/events-processing-platform/logger"
)
type CommandHandlers struct {
UpsertInteractionEvent UpsertInteractionEventCommandHandler
RequestSummary RequestSummaryCommandHandler
ReplaceSummary ReplaceSummaryCommandHandler
RequestActionItems RequestActionItemsCommandHandler
ReplaceActionItems ReplaceActionItemsCommandHandler
}
func NewCommandHandlers(log logger.Logger, es eventstore.AggregateStore) *CommandHandlers {
return &CommandHandlers{
UpsertInteractionEvent: NewUpsertInteractionEventCommandHandler(log, es),
RequestSummary: NewRequestSummaryCommandHandler(log, es),
ReplaceSummary: NewReplaceSummaryCommandHandler(log, es),
RequestActionItems: NewRequestActionItemsCommandHandler(log, es),
ReplaceActionItems: NewReplaceActionItemsCommandHandler(log, es),
}
}