-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
constants.go
46 lines (40 loc) · 1.48 KB
/
constants.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package constants
// ServiceName The name of this module/service
const ServiceName = "depot"
// GRPC Service Names
const (
StoresServiceName = "STORES"
CustomersServiceName = "CUSTOMERS"
)
// Dependency Injection Keys
const (
RegistryKey = "registry"
DomainDispatcherKey = "domainDispatcher"
DatabaseTransactionKey = "tx"
MessagePublisherKey = "messagePublisher"
MessageSubscriberKey = "messageSubscriber"
EventPublisherKey = "eventPublisher"
CommandPublisherKey = "commandPublisher"
ReplyPublisherKey = "replyPublisher"
SagaStoreKey = "sagaStore"
InboxStoreKey = "inboxStore"
ApplicationKey = "app"
DomainEventHandlersKey = "domainEventHandlers"
IntegrationEventHandlersKey = "integrationEventHandlers"
CommandHandlersKey = "commandHandlers"
ReplyHandlersKey = "replyHandlers"
ShoppingListsRepoKey = "shoppingListRepo"
StoresCacheRepoKey = "storesCacheRepo"
ProductsCacheRepoKey = "productsCacheRepo"
)
// Repository Table Names
const (
OutboxTableName = ServiceName + ".outbox"
InboxTableName = ServiceName + ".inbox"
EventsTableName = ServiceName + ".events"
SnapshotsTableName = ServiceName + ".snapshots"
SagasTableName = ServiceName + ".sagas"
ShoppingListsTableName = ServiceName + ".shopping_lists"
StoresCacheTableName = ServiceName + ".stores_cache"
ProductsCacheTableName = ServiceName + ".products_cache"
)