Documentation ¶
Index ¶
- Variables
- type BasicMessage
- type BasicMessageConnection
- type BasicMessageEdge
- type ConnectInput
- type Credential
- type CredentialConnection
- type CredentialEdge
- type CredentialMatch
- type CredentialRole
- type CredentialValue
- type Event
- type EventConnection
- type EventEdge
- type InvitationResponse
- type Job
- type JobConnection
- type JobEdge
- type JobOutput
- type JobResult
- type JobStatus
- type LoginResponse
- type MarkReadInput
- type MessageInput
- type PageInfo
- type Pairwise
- type PairwiseConnection
- type PairwiseEdge
- type Proof
- type ProofAttribute
- type ProofConnection
- type ProofEdge
- type ProofRequestAttribute
- type ProofRequestInput
- type ProofRole
- type ProofValue
- type ProtocolType
- type Provable
- type ProvableAttribute
- type Response
- type ResumeJobInput
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var AllCredentialRole = []CredentialRole{ CredentialRoleIssuer, CredentialRoleHolder, }
View Source
var AllJobResult = []JobResult{ JobResultNone, JobResultSuccess, JobResultFailure, }
View Source
var AllJobStatus = []JobStatus{ JobStatusWaiting, JobStatusPending, JobStatusBlocked, JobStatusComplete, }
View Source
var AllProofRole = []ProofRole{ ProofRoleVerifier, ProofRoleProver, }
View Source
var AllProtocolType = []ProtocolType{ ProtocolTypeNone, ProtocolTypeConnection, ProtocolTypeCredential, ProtocolTypeProof, ProtocolTypeBasicMessage, }
Functions ¶
This section is empty.
Types ¶
type BasicMessage ¶
type BasicMessageConnection ¶
type BasicMessageConnection struct { ConnectionID *string `json:"ConnectionId"` Edges []*BasicMessageEdge `json:"edges"` Nodes []*BasicMessage `json:"nodes"` PageInfo *PageInfo `json:"pageInfo"` TotalCount int `json:"totalCount"` }
type BasicMessageEdge ¶
type BasicMessageEdge struct { Cursor string `json:"cursor"` Node *BasicMessage `json:"node"` }
type ConnectInput ¶
type ConnectInput struct {
Invitation string `json:"invitation"`
}
type Credential ¶
type Credential struct { ID string `json:"id"` Role CredentialRole `json:"role"` SchemaID string `json:"schemaId"` CredDefID string `json:"credDefId"` Attributes []*CredentialValue `json:"attributes"` InitiatedByUs bool `json:"initiatedByUs"` ApprovedMs *string `json:"approvedMs"` IssuedMs *string `json:"issuedMs"` CreatedMs string `json:"createdMs"` Connection *Pairwise `json:"connection"` }
type CredentialConnection ¶
type CredentialConnection struct { ConnectionID *string `json:"connectionId"` Edges []*CredentialEdge `json:"edges"` Nodes []*Credential `json:"nodes"` PageInfo *PageInfo `json:"pageInfo"` TotalCount int `json:"totalCount"` }
type CredentialEdge ¶
type CredentialEdge struct { Cursor string `json:"cursor"` Node *Credential `json:"node"` }
type CredentialMatch ¶ added in v0.1.3
type CredentialRole ¶
type CredentialRole string
const ( CredentialRoleIssuer CredentialRole = "ISSUER" CredentialRoleHolder CredentialRole = "HOLDER" )
func (CredentialRole) IsValid ¶
func (e CredentialRole) IsValid() bool
func (CredentialRole) MarshalGQL ¶
func (e CredentialRole) MarshalGQL(w io.Writer)
func (CredentialRole) String ¶
func (e CredentialRole) String() string
func (*CredentialRole) UnmarshalGQL ¶
func (e *CredentialRole) UnmarshalGQL(v interface{}) error
type CredentialValue ¶
type EventConnection ¶
type InvitationResponse ¶
type JobConnection ¶
type JobOutput ¶
type JobOutput struct { Connection *PairwiseEdge `json:"connection"` Message *BasicMessageEdge `json:"message"` Credential *CredentialEdge `json:"credential"` Proof *ProofEdge `json:"proof"` }
type JobResult ¶
type JobResult string
func (JobResult) MarshalGQL ¶
func (*JobResult) UnmarshalGQL ¶
type JobStatus ¶
type JobStatus string
func (JobStatus) MarshalGQL ¶
func (*JobStatus) UnmarshalGQL ¶
type LoginResponse ¶
type LoginResponse struct {
Token string `json:"token"`
}
type MarkReadInput ¶
type MarkReadInput struct {
ID string `json:"id"`
}
type MessageInput ¶
type Pairwise ¶
type Pairwise struct { ID string `json:"id"` OurDid string `json:"ourDid"` TheirDid string `json:"theirDid"` TheirEndpoint string `json:"theirEndpoint"` TheirLabel string `json:"theirLabel"` CreatedMs string `json:"createdMs"` ApprovedMs string `json:"approvedMs"` Invited bool `json:"invited"` Messages *BasicMessageConnection `json:"messages"` Credentials *CredentialConnection `json:"credentials"` Proofs *ProofConnection `json:"proofs"` Jobs *JobConnection `json:"jobs"` Events *EventConnection `json:"events"` }
type PairwiseConnection ¶
type PairwiseConnection struct { Edges []*PairwiseEdge `json:"edges"` Nodes []*Pairwise `json:"nodes"` PageInfo *PageInfo `json:"pageInfo"` TotalCount int `json:"totalCount"` }
type PairwiseEdge ¶
type Proof ¶
type Proof struct { ID string `json:"id"` Role ProofRole `json:"role"` Attributes []*ProofAttribute `json:"attributes"` Values []*ProofValue `json:"values"` Provable *Provable `json:"provable"` InitiatedByUs bool `json:"initiatedByUs"` Result bool `json:"result"` VerifiedMs *string `json:"verifiedMs"` ApprovedMs *string `json:"approvedMs"` CreatedMs string `json:"createdMs"` Connection *Pairwise `json:"connection"` }
type ProofAttribute ¶
type ProofConnection ¶
type ProofRequestAttribute ¶ added in v0.1.163
type ProofRequestInput ¶ added in v0.1.163
type ProofRequestInput struct { ConnectionID string `json:"connectionId"` Attributes []*ProofRequestAttribute `json:"attributes"` }
type ProofRole ¶
type ProofRole string
func (ProofRole) MarshalGQL ¶
func (*ProofRole) UnmarshalGQL ¶
type ProofValue ¶ added in v0.1.3
type ProtocolType ¶
type ProtocolType string
const ( ProtocolTypeNone ProtocolType = "NONE" ProtocolTypeConnection ProtocolType = "CONNECTION" ProtocolTypeCredential ProtocolType = "CREDENTIAL" ProtocolTypeProof ProtocolType = "PROOF" ProtocolTypeBasicMessage ProtocolType = "BASIC_MESSAGE" )
func (ProtocolType) IsValid ¶
func (e ProtocolType) IsValid() bool
func (ProtocolType) MarshalGQL ¶
func (e ProtocolType) MarshalGQL(w io.Writer)
func (ProtocolType) String ¶
func (e ProtocolType) String() string
func (*ProtocolType) UnmarshalGQL ¶
func (e *ProtocolType) UnmarshalGQL(v interface{}) error
type Provable ¶ added in v0.1.3
type Provable struct { ID string `json:"id"` Provable bool `json:"provable"` Attributes []*ProvableAttribute `json:"attributes"` }
type ProvableAttribute ¶ added in v0.1.3
type ProvableAttribute struct { ID string `json:"id"` Attribute *ProofAttribute `json:"attribute"` Credentials []*CredentialMatch `json:"credentials"` }
type ResumeJobInput ¶
Click to show internal directories.
Click to hide internal directories.