Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agency ¶
type Agency interface { Init(l Listener, agents []*Agent, archiver Archiver, config *utils.Configuration) AddAgent(agent *Agent) error Invite(a *Agent) (*InvitationData, error) Connect(a *Agent, invitation string) (string, error) SendMessage(a *Agent, connectionID, message string) (string, error) SendProofRequest(a *Agent, connectionID string, attributes []Attribute) (string, error) ResumeCredentialOffer(a *Agent, job *JobInfo, accept bool) error ResumeProofRequest(a *Agent, job *JobInfo, accept bool) error }
type ArchiveInfo ¶ added in v0.1.3
type Archiver ¶ added in v0.1.3
type Archiver interface { ArchiveConnection(info *ArchiveInfo, connection *Connection) ArchiveMessage(info *ArchiveInfo, message *Message) ArchiveCredential(info *ArchiveInfo, credential *Credential) ArchiveProof(info *ArchiveInfo, proof *Proof) }
type Connection ¶
type Connection struct {
OurDID, TheirDID, TheirEndpoint, TheirLabel string
}
type Credential ¶
type Credential struct { Role model.CredentialRole SchemaID, CredDefID string Attributes []*model.CredentialValue InitiatedByUs bool }
type CredentialUpdate ¶
type CredentialUpdate struct {
ApprovedMs, IssuedMs, FailedMs *int64
}
type InvitationData ¶ added in v0.1.26
type Listener ¶
type Listener interface { AddConnection(job *JobInfo, connection *Connection) error AddMessage(job *JobInfo, message *Message) error UpdateMessage(job *JobInfo, update *MessageUpdate) error AddCredential(job *JobInfo, credential *Credential) (*dbModel.Job, error) UpdateCredential(job *JobInfo, credential *Credential, update *CredentialUpdate) error AddProof(job *JobInfo, proof *Proof) (*dbModel.Job, error) UpdateProof(job *JobInfo, proof *Proof, update *ProofUpdate) error FailJob(job *JobInfo) error }
type MessageUpdate ¶
type MessageUpdate struct {
Delivered bool
}
type Proof ¶
type Proof struct { Role model.ProofRole Attributes []*model.ProofAttribute Values []*ProofValue InitiatedByUs bool }
type ProofUpdate ¶
type ProofUpdate struct {
ApprovedMs, VerifiedMs, FailedMs *int64
}
type ProofValue ¶ added in v0.1.163
Click to show internal directories.
Click to hide internal directories.