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 {
	CreateValue *outofbandsvc.Invitation
	CreateErr   error
	AcceptValue string
	AcceptErr   error
}

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

func (*MockClient) AcceptInvitation

func (c *MockClient) AcceptInvitation(_ *outofbandsvc.Invitation) (string, error)

AcceptInvitation accepts invitation.

func (*MockClient) CreateInvitation

func (c *MockClient) CreateInvitation(...outofbandv2.MessageOption) (*outofbandsvc.Invitation, error)

CreateInvitation creates a mock outofbandv2 invitation.

type MockService

type MockService struct {
	AcceptInvitationValue string
	AcceptInvitationErr   error
	SaveInvitationErr     error
}

MockService is a mock outofband 2.0 service.

func (*MockService) AcceptInvitation

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

AcceptInvitation accepts invitation.

func (*MockService) SaveInvitation

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

SaveInvitation saves invitation.

Jump to

Keyboard shortcuts

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