dispatcher

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2019 License: Apache-2.0 Imports: 5 Imported by: 23

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Outbound

type Outbound interface {
	Send(interface{}, string, *service.Destination) error
}

Outbound interface

type OutboundCreator

type OutboundCreator func(prov Provider) (Outbound, error)

OutboundCreator method to create new outbound dispatcher service

type OutboundDispatcher

type OutboundDispatcher struct {
	// contains filtered or unexported fields
}

OutboundDispatcher dispatch msgs to destination

func NewOutbound

func NewOutbound(prov Provider) *OutboundDispatcher

NewOutbound return new dispatcher outbound instance

func (*OutboundDispatcher) Send

func (o *OutboundDispatcher) Send(msg interface{}, senderVerKey string, des *service.Destination) error

Send msg

type Provider

type Provider interface {
	Packager() commontransport.Packager
	OutboundTransports() []transport.OutboundTransport
}

Provider interface for outbound ctx

type Service

type Service interface {
	service.Handler
	Accept(msgType string) bool
	Name() string
}

Service protocol service

Jump to

Keyboard shortcuts

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