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) 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 InvitationData struct { Raw string ID string Data didexchange.Invitation }
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) error UpdateCredential(job *JobInfo, update *CredentialUpdate) error AddProof(job *JobInfo, proof *Proof) error UpdateProof(job *JobInfo, 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 InitiatedByUs bool }
type ProofUpdate ¶
type ProofUpdate struct {
ApprovedMs, VerifiedMs, FailedMs *int64
}
Click to show internal directories.
Click to hide internal directories.