introduce

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2019 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	service.Event
	// contains filtered or unexported fields
}

Client enable access to introduce API

func New

func New(ctx Provider) (*Client, error)

New return new instance of introduce client

func (*Client) HandleRequest

func (c *Client) HandleRequest(dest1, dest2 *service.Destination) error

HandleRequest executes after receiving a request (the client does not have a public Invitation)

func (*Client) HandleRequestWithInvitation

func (c *Client) HandleRequestWithInvitation(inv *didexchange.Invitation, dest *service.Destination) error

HandleRequestWithInvitation executes after receiving a request when the client has a public Invitation

func (*Client) SendProposal

func (c *Client) SendProposal(dest1, dest2 *service.Destination) error

SendProposal sends proposal to introducees

func (*Client) SendProposalWithInvitation

func (c *Client) SendProposalWithInvitation(inv *didexchange.Invitation, dest *service.Destination) error

SendProposalWithInvitation sends proposal to introducee executes when the client has a public Invitation

func (*Client) SendRequest

func (c *Client) SendRequest(dest *service.Destination) error

SendRequest sends request sending a request means that introducee is willing to share its invitation

type Provider

type Provider interface {
	Service(id string) (interface{}, error)
	StorageProvider() storage.Provider
}

Provider contains dependencies for the introduce protocol and is typically created by using aries.Context()

Jump to

Keyboard shortcuts

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