messagequeue

package
v0.0.0-...-799b1f8 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: GPL-3.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
const TIMEOUT = 1 * time.Minute

Variables

This section is empty.

Functions

This section is empty.

Types

type Extension

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

func NewExtension

func NewExtension() *Extension

func (*Extension) ConnectToMaster

func (e *Extension) ConnectToMaster(m interfaces.Master)

func (*Extension) GetMessageQueue

func (e *Extension) GetMessageQueue() *MessageQueue

func (*Extension) Run

func (e *Extension) Run()

type Master

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

func NewMaster

func NewMaster() *Master

func (*Master) GetDataHandler

func (m *Master) GetDataHandler() etypes.MessageHandler

func (*Master) GetErrorHandler

func (m *Master) GetErrorHandler() etypes.ErrorHandler

func (*Master) GetMessageQueue

func (m *Master) GetMessageQueue() *MessageQueue

func (*Master) Run

func (m *Master) Run()

func (*Master) SetDataHandler

func (m *Master) SetDataHandler(dh etypes.MessageHandler)

func (*Master) SetErrorHandler

func (m *Master) SetErrorHandler(eh etypes.ErrorHandler)

type MessageQueue

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

func NewMessageQueue

func NewMessageQueue() *MessageQueue

func (*MessageQueue) RegisterDataHandler

func (mq *MessageQueue) RegisterDataHandler(t string, dh types.MQDataHandler)

func (*MessageQueue) Run

func (mq *MessageQueue) Run()

func (*MessageQueue) SendMessage

func (mq *MessageQueue) SendMessage(p interface{}, pt string) (string, error)

func (*MessageQueue) SendMessageAwaitingResponse

func (mq *MessageQueue) SendMessageAwaitingResponse(p interface{}, pt string, rh func(interface{}, string), toh func()) (string, error)

func (*MessageQueue) SendMessageResponse

func (mq *MessageQueue) SendMessageResponse(p interface{}, pt string, id string)

func (*MessageQueue) SetDataHandler

func (mq *MessageQueue) SetDataHandler(dh types.MQDataHandler)

func (*MessageQueue) Stop

func (mq *MessageQueue) Stop()

func (*MessageQueue) UnregisterDataHandler

func (mq *MessageQueue) UnregisterDataHandler(t string)

Jump to

Keyboard shortcuts

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