-
Notifications
You must be signed in to change notification settings - Fork 8
/
services.go
48 lines (45 loc) · 1.65 KB
/
services.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
47
48
package services
import "github.com/caraml-dev/xp/management-service/services/messagequeue"
type Services struct {
ExperimentService ExperimentService
ExperimentHistoryService ExperimentHistoryService
SegmenterService SegmenterService
MLPService MLPService
ProjectSettingsService ProjectSettingsService
SegmentService SegmentService
SegmentHistoryService SegmentHistoryService
TreatmentService TreatmentService
TreatmentHistoryService TreatmentHistoryService
ValidationService ValidationService
MessageQueueService messagequeue.MessageQueueService
ConfigurationService ConfigurationService
}
func NewServices(
expSvc ExperimentService,
expHistorySvc ExperimentHistoryService,
segmenterSvc SegmenterService,
mlpSvc MLPService,
projectSettingsSvc ProjectSettingsService,
segmentSvc SegmentService,
segmentHistorySvc SegmentHistoryService,
treatmentSvc TreatmentService,
treatmentHistorySvc TreatmentHistoryService,
validationSvc ValidationService,
messageQueueSvc messagequeue.MessageQueueService,
configurationService ConfigurationService,
) Services {
return Services{
ExperimentService: expSvc,
ExperimentHistoryService: expHistorySvc,
MLPService: mlpSvc,
ProjectSettingsService: projectSettingsSvc,
MessageQueueService: messageQueueSvc,
SegmenterService: segmenterSvc,
SegmentService: segmentSvc,
SegmentHistoryService: segmentHistorySvc,
TreatmentService: treatmentSvc,
TreatmentHistoryService: treatmentHistorySvc,
ValidationService: validationSvc,
ConfigurationService: configurationService,
}
}