Documentation ¶
Index ¶
- type MockMessagePickupSvc
- func (m *MockMessagePickupSvc) Accept(msgType string) bool
- func (m *MockMessagePickupSvc) AddMessage(message []byte, theirDID string) error
- func (m *MockMessagePickupSvc) BatchPickup(connectionID string, size int) (int, error)
- func (m *MockMessagePickupSvc) HandleInbound(msg service.DIDCommMsg, ctx service.DIDCommContext) (string, error)
- func (m *MockMessagePickupSvc) Initialize(interface{}) error
- func (m *MockMessagePickupSvc) Name() string
- func (m *MockMessagePickupSvc) Noop(connectionID string) error
- func (m *MockMessagePickupSvc) StatusRequest(connectionID string) (*messagepickup.Status, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockMessagePickupSvc ¶
type MockMessagePickupSvc struct { service.DIDComm ProtocolName string StatusRequestErr error StatusRequestFunc func(connectionID string) (*messagepickup.Status, error) BatchPickupErr error BatchPickupFunc func(connectionID string, size int) (int, error) HandleInboundFunc func(msg service.DIDCommMsg, ctx service.DIDCommContext) (string, error) HandleOutboundFunc func(_ service.DIDCommMsg, _, _ string) (string, error) AddMessageFunc func(message []byte, theirDID string) error AddMessageErr error AcceptFunc func(msgType string) bool NoopErr error NoopFunc func(connectionID string) error }
MockMessagePickupSvc mock messagepickup service.
func (*MockMessagePickupSvc) Accept ¶
func (m *MockMessagePickupSvc) Accept(msgType string) bool
Accept msg checks the msg type.
func (*MockMessagePickupSvc) AddMessage ¶
func (m *MockMessagePickupSvc) AddMessage(message []byte, theirDID string) error
AddMessage perform AddMessage.
func (*MockMessagePickupSvc) BatchPickup ¶
func (m *MockMessagePickupSvc) BatchPickup(connectionID string, size int) (int, error)
BatchPickup perform BatchPickup.
func (*MockMessagePickupSvc) HandleInbound ¶
func (m *MockMessagePickupSvc) HandleInbound(msg service.DIDCommMsg, ctx service.DIDCommContext) (string, error)
HandleInbound msg.
func (*MockMessagePickupSvc) Initialize ¶ added in v0.1.8
func (m *MockMessagePickupSvc) Initialize(interface{}) error
Initialize service.
func (*MockMessagePickupSvc) Name ¶
func (m *MockMessagePickupSvc) Name() string
Name return service name.
func (*MockMessagePickupSvc) Noop ¶
func (m *MockMessagePickupSvc) Noop(connectionID string) error
Noop perform Noop.
func (*MockMessagePickupSvc) StatusRequest ¶
func (m *MockMessagePickupSvc) StatusRequest(connectionID string) (*messagepickup.Status, error)
StatusRequest perform StatusRequest.
Click to show internal directories.
Click to hide internal directories.