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.
Click to show internal directories.
Click to hide internal directories.