-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.yml
86 lines (77 loc) · 1.7 KB
/
config.yml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
config:
sourcing_dir: eventgen/internal/sourcing
validations_dir: eventgen/internal/validators
aggregates:
user:
create:
events: [ user.created ]
fields:
id: id [required]
firstName: string
lastName: string
email: string
update-email:
events: [ user.email-changed ]
fields:
id: id [required]
email: string
events:
user:
created:
id: id
firstName: string
lastName: string
email: string
email-changed:
id: id
email: string
projections:
emails-used:
- user.created
- user.email-changed
# Place any type mappings here.
# Example:
# type_mapping:
# time:
# type: time.Time
# import: time
type_mapping:
time:
type: time.Time
import: time
core*:
import: eventgen/internal/domain/core
# Place any events that you have renamed here.
# Example:
# event_migrations:
# ContainerUserAssigned: [UserAssignedToContainer]
#
# This will map the event UserAssignedToContainer to ContainerUserAssigned event
event_migrations:
UserCreated: [MyNewEvent]
projection_additional_methods:
methods:
SetLastEventVersion:
params: 'version sourcing.Version'
IsBehind:
return: bool
GetDiffBehind:
return: sourcing.Version
GetLastEventVersion:
return: sourcing.Version
Name:
return: string
IsHydrating:
return: bool
SetHydrating:
params: 'hydrating bool'
SetPaused:
params: 'paused bool'
IsPaused:
return: bool
IsCatchingUp:
return: bool
SetCatchingUp:
params: 'catchingUp bool'
Debug:
return: bool