outofbandv2

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: 2 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 {
	CreateInvVal *outofbandv2.Invitation
	CreateInvErr error
	AcceptInvVal string
	AcceptInvErr error
}

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

func (*MockClient) AcceptInvitation

func (m *MockClient) AcceptInvitation(i *outofbandv2.Invitation) (string, error)

AcceptInvitation mock.

func (*MockClient) CreateInvitation

func (m *MockClient) CreateInvitation(opts ...client.MessageOption) (*outofbandv2.Invitation, error)

CreateInvitation mock.

type MockService

type MockService struct {
	SaveInvitationErr error
}

MockService is a mock outofband service.

func (*MockService) AcceptInvitation

func (m *MockService) AcceptInvitation(*outofbandv2.Invitation, ...outofbandv2.AcceptOption) (string, error)

AcceptInvitation mock.

func (*MockService) SaveInvitation

func (m *MockService) SaveInvitation(*outofbandv2.Invitation) error

SaveInvitation mock.

Jump to

Keyboard shortcuts

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