-
Notifications
You must be signed in to change notification settings - Fork 0
/
bridge.go
66 lines (54 loc) · 1.84 KB
/
bridge.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
package bridge
import "github.com/bloock/bloock-sdk-go/v2/internal/bridge/proto"
type BloockBridge struct {
authenticity proto.AuthenticityServiceClient
availability proto.AvailabilityServiceClient
encryption proto.EncryptionServiceClient
identity proto.IdentityServiceClient
identityCore proto.IdentityCoreServiceClient
integrity proto.IntegrityServiceClient
key proto.KeyServiceClient
record proto.RecordServiceClient
webhook proto.WebhookServiceClient
}
func NewBloockBridge() BloockBridge {
conn := NewBloockConnection()
return BloockBridge{
authenticity: proto.NewAuthenticityServiceClient(conn),
availability: proto.NewAvailabilityServiceClient(conn),
encryption: proto.NewEncryptionServiceClient(conn),
identity: proto.NewIdentityServiceClient(conn),
identityCore: proto.NewIdentityCoreServiceClient(conn),
integrity: proto.NewIntegrityServiceClient(conn),
key: proto.NewKeyServiceClient(conn),
record: proto.NewRecordServiceClient(conn),
webhook: proto.NewWebhookServiceClient(conn),
}
}
func (b *BloockBridge) Authenticity() proto.AuthenticityServiceClient {
return b.authenticity
}
func (b *BloockBridge) Availability() proto.AvailabilityServiceClient {
return b.availability
}
func (b *BloockBridge) Encryption() proto.EncryptionServiceClient {
return b.encryption
}
func (b *BloockBridge) Identity() proto.IdentityServiceClient {
return b.identity
}
func (b *BloockBridge) IdentityCore() proto.IdentityCoreServiceClient {
return b.identityCore
}
func (b *BloockBridge) Integrity() proto.IntegrityServiceClient {
return b.integrity
}
func (b *BloockBridge) Key() proto.KeyServiceClient {
return b.key
}
func (b *BloockBridge) Record() proto.RecordServiceClient {
return b.record
}
func (b *BloockBridge) Webhook() proto.WebhookServiceClient {
return b.webhook
}