/
resolver.go
45 lines (41 loc) · 1.63 KB
/
resolver.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
package graph
import (
authservice "github.com/fidesy-pay/facade/internal/pkg/services/auth-service"
cryptoservice "github.com/fidesy-pay/facade/internal/pkg/services/crypto-service"
invoicesservice "github.com/fidesy-pay/facade/internal/pkg/services/invoices-service"
clients_service "github.com/fidesy-pay/facade/pkg/clients-service"
crypto_service "github.com/fidesy-pay/facade/pkg/crypto-service"
external_api "github.com/fidesy-pay/facade/pkg/external-api"
workflow_manager "github.com/fidesy-pay/facade/pkg/workflow-manager"
)
// This file will not be regenerated automatically.
//
// It serves as dependency injection for your app, add any dependencies you require here.
type Resolver struct {
clientsClient clients_service.ClientsServiceClient
cryptoClient crypto_service.CryptoServiceClient
workflowManager workflow_manager.WorkflowManagerClient
externalAPI external_api.ExternalAPIClient
authService *authservice.Service
invoicesService *invoicesservice.Service
cryptoService *cryptoservice.Service
}
func NewResolver(
clientsClient clients_service.ClientsServiceClient,
cryptoServiceClient crypto_service.CryptoServiceClient,
workflowManager workflow_manager.WorkflowManagerClient,
externalAPI external_api.ExternalAPIClient,
authService *authservice.Service,
invoicesService *invoicesservice.Service,
cryptoService *cryptoservice.Service,
) *Resolver {
return &Resolver{
clientsClient: clientsClient,
cryptoClient: cryptoServiceClient,
workflowManager: workflowManager,
externalAPI: externalAPI,
authService: authService,
invoicesService: invoicesService,
cryptoService: cryptoService,
}
}