Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockMessageSvc ¶
type MockMessageSvc struct { HandleFunc func(*service.DIDCommMsg) (string, error) AcceptFunc func(msgType string, purpose []string) bool NameVal string }
MockMessageSvc is mock generic service
func NewCustomMockMessageSvc ¶
func NewCustomMockMessageSvc(typeVal, name string) *MockMessageSvc
NewCustomMockMessageSvc returns new custom mock message service
func (*MockMessageSvc) Accept ¶
func (m *MockMessageSvc) Accept(msgType string, purpose []string) bool
Accept msg checks the msg type
func (*MockMessageSvc) HandleInbound ¶
func (m *MockMessageSvc) HandleInbound(msg service.DIDCommMsg, myDID, theirDID string) (string, error)
HandleInbound msg
Click to show internal directories.
Click to hide internal directories.