msghandler

package
v0.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

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.

func (*MessageService) Name

func (m *MessageService) Name() string

Name of the message service.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL