Documentation ¶
Index ¶
- type MockClient
- type MockService
- func (m *MockService) AcceptInvitation(invitation *outofband.Invitation, opts outofband.Options) (string, error)
- func (m *MockService) ActionContinue(s string, options outofband.Options) error
- func (m *MockService) ActionStop(s string, err error) error
- func (m *MockService) Actions() ([]outofband.Action, error)
- func (m *MockService) RegisterActionEvent(ch chan<- service.DIDCommAction) error
- func (m *MockService) RegisterMsgEvent(ch chan<- service.StateMsg) error
- func (m *MockService) SaveInvitation(invitation *outofband.Invitation) error
- func (m *MockService) UnregisterActionEvent(ch chan<- service.DIDCommAction) error
- func (m *MockService) UnregisterMsgEvent(ch chan<- service.StateMsg) error
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.
Click to show internal directories.
Click to hide internal directories.