outofband

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

type MockClient struct {
	CreateInvitationErr error
}

MockClient is a mock out-of-band client used in tests.

func (*MockClient) CreateInvitation

func (c *MockClient) CreateInvitation([]interface{}, ...outofband.MessageOption) (*outofband.Invitation, error)

CreateInvitation creates a mock outofband invitation.

type MockService

type MockService struct {
	SaveInvitationErr error
}

MockService is a mock outofband service.

func (*MockService) AcceptInvitation

func (m *MockService) AcceptInvitation(invitation *outofband.Invitation, opts outofband.Options) (string, error)

AcceptInvitation mock.

func (*MockService) ActionContinue

func (m *MockService) ActionContinue(s string, options outofband.Options) error

ActionContinue mock.

func (*MockService) ActionStop

func (m *MockService) ActionStop(s string, err error) error

ActionStop mock.

func (*MockService) Actions

func (m *MockService) Actions() ([]outofband.Action, error)

Actions mock.

func (*MockService) RegisterActionEvent

func (m *MockService) RegisterActionEvent(ch chan<- service.DIDCommAction) error

RegisterActionEvent mock.

func (*MockService) RegisterMsgEvent

func (m *MockService) RegisterMsgEvent(ch chan<- service.StateMsg) error

RegisterMsgEvent mock.

func (*MockService) SaveInvitation

func (m *MockService) SaveInvitation(invitation *outofband.Invitation) error

SaveInvitation mock.

func (*MockService) UnregisterActionEvent

func (m *MockService) UnregisterActionEvent(ch chan<- service.DIDCommAction) error

UnregisterActionEvent mock.

func (*MockService) UnregisterMsgEvent

func (m *MockService) UnregisterMsgEvent(ch chan<- service.StateMsg) error

UnregisterMsgEvent mock.

Jump to

Keyboard shortcuts

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