Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TimeToCursor ¶
Types ¶
type Agent ¶
type Agent struct { Base AgentID string `faker:"agentId"` Label string `faker:"first_name"` RawJWT string `faker:"-"` LastAccessed time.Time }
func (*Agent) IsNewOnboard ¶
type Connection ¶
type Connection struct { Base OurDid string TheirDid string TheirEndpoint string `faker:"url"` TheirLabel string `faker:"organisationLabel"` Invited bool Approved time.Time `faker:"-"` Archived time.Time `faker:"-"` }
func (*Connection) ToEdge ¶
func (c *Connection) ToEdge() *model.PairwiseEdge
func (*Connection) ToNode ¶
func (c *Connection) ToNode() *model.Pairwise
type Connections ¶
type Connections struct { Connections []*Connection HasNextPage bool HasPreviousPage bool }
func (*Connections) ToConnection ¶
func (c *Connections) ToConnection() *model.PairwiseConnection
type Credential ¶
type Credential struct { Base ConnectionID string Role model.CredentialRole `faker:"oneof: HOLDER, HOLDER"` SchemaID string CredDefID string `faker:"oneof: credDefId1, credDefId2, credDefId3"` // TODO: can we avoid pointers with slices in gql interface? Attributes []*model.CredentialValue `faker:"credentialAttributes"` InitiatedByUs bool Approved time.Time `faker:"-"` Issued time.Time `faker:"-"` Failed time.Time `faker:"-"` Archived time.Time `faker:"-"` }
func (*Credential) Description ¶
func (c *Credential) Description() string
func (*Credential) IsIssued ¶ added in v0.1.19
func (c *Credential) IsIssued() bool
func (*Credential) ToEdge ¶
func (c *Credential) ToEdge() *model.CredentialEdge
func (*Credential) ToNode ¶
func (c *Credential) ToNode() *model.Credential
type Credentials ¶
type Credentials struct { Credentials []*Credential HasNextPage bool HasPreviousPage bool }
func (*Credentials) ToConnection ¶
func (c *Credentials) ToConnection(id *string) *model.CredentialConnection
type Event ¶
type Events ¶
func (*Events) ToConnection ¶
func (e *Events) ToConnection(id *string) *model.EventConnection
type Job ¶
type Job struct { Base ProtocolType model.ProtocolType `faker:"oneof: NONE,NONE"` ProtocolConnectionID *string `faker:"-"` ProtocolCredentialID *string `faker:"-"` ProtocolProofID *string `faker:"-"` ProtocolMessageID *string `faker:"-"` ConnectionID *string `faker:"-"` Status model.JobStatus `faker:"oneof: COMPLETE,COMPLETE"` Result model.JobResult `faker:"oneof: SUCCESS,SUCCESS"` InitiatedByUs bool Updated time.Time }
type JobOutput ¶
type JobOutput struct { Connection *Connection Credential *Credential Proof *Proof Message *Message }
type Jobs ¶
func (*Jobs) ToConnection ¶
func (j *Jobs) ToConnection(id *string, completed *bool) *model.JobConnection
type Message ¶
type Message struct { Base ConnectionID string Message string `faker:"sentence"` SentByMe bool Delivered bool Archived time.Time `faker:"-"` }
func (*Message) Description ¶
func (*Message) ToEdge ¶
func (m *Message) ToEdge() *model.BasicMessageEdge
func (*Message) ToNode ¶
func (m *Message) ToNode() *model.BasicMessage
type Messages ¶
func (*Messages) ToConnection ¶
func (m *Messages) ToConnection(id *string) *model.BasicMessageConnection
type Proof ¶
type Proof struct { Base ConnectionID string Role model.ProofRole `faker:"oneof: PROVER, PROVER"` Attributes []*model.ProofAttribute `faker:"proofAttributes"` Values []*model.ProofValue `faker:"-"` InitiatedByUs bool Result bool Provable time.Time `faker:"-"` Approved time.Time `faker:"-"` Verified time.Time `faker:"-"` Failed time.Time `faker:"-"` Archived time.Time `faker:"-"` }
func (*Proof) Description ¶
Click to show internal directories.
Click to hide internal directories.