Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TimeToCursor ¶
Types ¶
type Agent ¶
type Agent struct { AgentID string `faker:"agentId"` Label string `faker:"first_name"` RawJWT *string `faker:"-"` LastAccessed time.Time // contains filtered or unexported fields }
func (*Agent) IsNewOnboard ¶
type Connection ¶
type Connection struct { OurDid string TheirDid string TheirEndpoint string `faker:"url"` TheirLabel string `faker:"organisationLabel"` Invited bool Approved *time.Time `faker:"-"` Archived *time.Time `faker:"-"` // contains filtered or unexported fields }
func EmptyConnection ¶
func EmptyConnection() *Connection
func NewConnection ¶
func NewConnection(id, tenantID string, c *Connection) *Connection
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 { ConnectionID string Role model.CredentialRole `faker:"oneof: HOLDER, HOLDER"` SchemaID string CredDefID string `faker:"oneof: credDefId1, credDefId2, credDefId3"` Attributes []*model.CredentialValue `faker:"credentialAttributes"` InitiatedByUs bool Approved *time.Time `faker:"-"` Issued *time.Time `faker:"-"` Failed *time.Time `faker:"-"` Archived *time.Time `faker:"-"` // contains filtered or unexported fields }
func NewCredential ¶
func NewCredential(tenantID string, c *Credential) *Credential
func (*Credential) Description ¶
func (c *Credential) Description() string
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 { 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 // contains filtered or unexported fields }
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 { ConnectionID string Message string `faker:"sentence"` SentByMe bool Delivered *bool Archived *time.Time `faker:"-"` // contains filtered or unexported fields }
func NewMessage ¶
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 { ConnectionID string Role model.ProofRole `faker:"oneof: PROVER, PROVER"` Attributes []*model.ProofAttribute `faker:"proofAttributes"` Values []*model.ProofValue `faker:"-"` InitiatedByUs bool Result bool Approved *time.Time `faker:"-"` Verified *time.Time `faker:"-"` Failed *time.Time `faker:"-"` Archived *time.Time `faker:"-"` // contains filtered or unexported fields }
func (*Proof) Description ¶
Click to show internal directories.
Click to hide internal directories.