dispatcher

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 1 Imported by: 23

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageService added in v0.1.1

type MessageService interface {
	service.InboundHandler
	Accept(msgType string, purpose []string) bool
	Name() string
}

MessageService is service for handling generic messages matching accept criteria based on message header.

type MessageTypeTarget added in v0.1.8

type MessageTypeTarget struct {
	MsgType string
	Target  string
}

MessageTypeTarget represents a service message type mapping value to an OOB target action.

type Outbound

type Outbound interface {
	// Send the message after packing with the sender key and recipient keys.
	Send(interface{}, string, *service.Destination) error

	// SendToDID Sends the message after packing with the keys derived from DIDs.
	SendToDID(msg interface{}, myDID, theirDID string) error

	// Forward forwards the message without packing to the destination.
	Forward(interface{}, *service.Destination) error
}

Outbound interface.

type ProtocolService added in v0.1.1

type ProtocolService interface {
	service.Handler
	Accept(msgType string) bool
	Name() string
	Initialize(interface{}) error
}

ProtocolService is service interface for protocol services available in framework for matching acceptance criteria based on message type.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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