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, ctx service.DIDCommContext) (string, error)
HandleInbound msg.
func (*MockMessageSvc) Initialize ¶ added in v0.1.8
func (m *MockMessageSvc) Initialize(interface{}) error
Initialize service.
Click to show internal directories.
Click to hide internal directories.