mock

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Invitation

type Invitation struct {
	ServiceEndpoint string   `json:"serviceEndpoint,omitempty" faker:"url"`
	RecipientKeys   []string `json:"recipientKeys,omitempty" faker:"-"`
	ID              string   `json:"@id,omitempty" faker:"uuid_hyphenated"`
	Label           string   `json:"label,omitempty" faker:"first_name"`
	Type            string   `json:"@type,omitempty" faker:"-"`
}

type Mock

type Mock struct {
	// contains filtered or unexported fields
}

func (*Mock) AddAgent

func (m *Mock) AddAgent(agent *model.Agent) error

func (*Mock) Connect

func (m *Mock) Connect(a *model.Agent, strInvitation string) (id string, err error)

func (*Mock) Init

func (m *Mock) Init(l model.Listener, agents []*model.Agent, config *utils.Configuration)

func (*Mock) Invite

func (m *Mock) Invite(a *model.Agent) (result, id string, err error)

func (*Mock) ResumeCredentialOffer

func (m *Mock) ResumeCredentialOffer(a *model.Agent, job *model.JobInfo, accept bool) (err error)

func (*Mock) ResumeProofRequest

func (m *Mock) ResumeProofRequest(a *model.Agent, job *model.JobInfo, accept bool) (err error)

func (*Mock) SendMessage

func (m *Mock) SendMessage(a *model.Agent, connectionID, message string) (id string, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL