-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.go
63 lines (55 loc) · 2.07 KB
/
types.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
package main
type ConfigInfo struct {
Port int `mapstructure:"PORT"`
EventSchemaId string `mapstructure:"EVENT_SCHEMA_ID"`
ProfileSchemaId string `mapstructure:"PROFILE_SCHEMA_ID"`
IssuerUname string `mapstructure:"ISSUER_UNAME"`
IssuerPass string `mapstructure:"ISSUER_PASS"`
IssuerApi string `mapstructure:"ISSUER_API"`
SubscriptionRecorderMumbaiAddress string `mapstructure:"SUBSCRIPTIPON_RECORDER_MUMBAI"`
MumbaiRpcUrl string `mapstructure:"MUMBAI_RPC_URL"`
}
type NewEventRequest struct {
ValidUntil string `json:"valid-until,omitempty"`
ClaimLimit int `json:"claim-limit,omitempty"`
EventInfo Event `json:"event"`
Signature string `json:"signature,omitempty"`
}
type Event struct {
Name string `json:"event-name"`
Location string `json:"event-location"`
Date string `json:"event-date"`
AdditionalInfo string `json:"additional-info"`
}
type Profile struct {
Name string `json:"name"`
Wallet string `json:"wallet"`
Profession string `json:"profession"`
Company string `json:"company"`
Telegram string `json:"telegram"`
/*
Linkedin string `json:"linkedin"`
Location string `json:"location"`
*/
}
type EventCredentialLinkRequest struct {
SchemaId string `json:"schemaID"`
ClaimLinkExpiration string `json:"claimLinkExpiration,omitempty"`
LimitedClaims int `json:"limitedClaims,omitempty"`
SignatureProof bool `json:"signatureProof"`
MtProof bool `json:"mtProof"`
CredentialSubject Event `json:"credentialSubject"`
}
type ProfileCredentialLinkRequest struct {
SchemaId string `json:"schemaID"`
SignatureProof bool `json:"signatureProof"`
MtProof bool `json:"mtProof"`
CredentialSubject Profile `json:"credentialSubject"`
}
type CreateLinkResponse struct {
Id string `json:"id"`
}
type QrCodeRequestResponse struct {
QrCode string `json:"qrCode"`
SessionID string `json:"sessionID"`
}