Documentation
¶
Index ¶
Constants ¶
View Source
const DispatcherThreads = 5
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
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
Click to show internal directories.
Click to hide internal directories.