didexchange

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bouncer

type Bouncer interface {
	InvitationMsg(e service.DIDCommAction, invite *didexchange.Invitation)
	RequestMsg(e service.DIDCommAction, request *didexchange.Request)
	EstablishConnection(invitation *didclient.Invitation, timeout time.Duration) (*didclient.Connection, error)
	EstablishConnectionNotify(invitation *didclient.Invitation, success NotifySuccess, nerr NotifyError) error
	CreateInvitation(name string) (*didclient.Invitation, error)
	CreateInvitationNotify(name string, success NotifySuccess, nerr NotifyError) (*didclient.Invitation, error)
	CreateInvitationWithDIDNotify(name, did string, success NotifySuccess, nerr NotifyError) (*didclient.Invitation, error)
	Unregister(ch chan service.StateMsg)
}

func NewBouncer

func NewBouncer(ctx provider) (Bouncer, error)

type ConnectionFunc

type ConnectionFunc func(didexchange.Connection)

type Handler

type Handler interface {
	InvitationMsg(e service.DIDCommAction, d *pdid.Invitation)
	RequestMsg(e service.DIDCommAction, d *pdid.Request)
}

type HandlerFunc

type HandlerFunc func(service.DIDCommAction)

type NotifyError

type NotifyError func(invitationID string, err error)

type NotifySuccess

type NotifySuccess func(invitationID string, conn *didclient.Connection)

type Supervisor

type Supervisor struct {
	service.Message
	// contains filtered or unexported fields
}

func New

func New(ctx provider) (*Supervisor, error)

func (*Supervisor) Start

func (r *Supervisor) Start(h Handler) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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