dispatcher

package
Version: v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DispatcherThreads = 5

Variables

This section is empty.

Functions

This section is empty.

Types

type Dispatcher

type Dispatcher interface {
	Push(msg message.Message, channelID string) error
	Dispatch() error
}

type MessageDispatcher

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

func NewDispatcher

func NewDispatcher(ctx context.Context, outboundPool *goconcurrentqueue.FIFO, dataStorage *storage.PqStorage) *MessageDispatcher

func (*MessageDispatcher) Dispatch

func (d *MessageDispatcher) Dispatch() error

func (*MessageDispatcher) Push

func (d *MessageDispatcher) Push(msg message.Message, channelID string) error

func (*MessageDispatcher) SetPublisher

func (d *MessageDispatcher) SetPublisher(channelID string, p publisher.Publisher)

type MessageForDelivery

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

func (MessageForDelivery) GetMessage

func (m MessageForDelivery) GetMessage() message.Message

Jump to

Keyboard shortcuts

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