Documentation
¶
Overview ¶
Package msghandler provides messaging service related implementations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageService ¶
type MessageService struct {
// contains filtered or unexported fields
}
MessageService is basic message service implementation which delegates handling to registered webhook notifier.
func NewMessageService ¶
func NewMessageService(name, msgType string, purpose []string, notifier command.Notifier) *MessageService
NewMessageService returns new message service instance.
func (*MessageService) Accept ¶
func (m *MessageService) Accept(msgType string, purpose []string) bool
Accept matches given message type and purpose with message service type and purpose.
func (*MessageService) HandleInbound ¶
func (m *MessageService) HandleInbound(msg service.DIDCommMsg, ctx service.DIDCommContext) (string, error)
HandleInbound is inbound handler for this message service.
Click to show internal directories.
Click to hide internal directories.