Documentation
¶
Index ¶
- type AnswerFunc
- type EventHandler
- type Manager
- func (m *Manager) Close()
- func (m *Manager) EnsureConnected() error
- func (m *Manager) Publish(subject string, data []byte) error
- func (m *Manager) Request(subject string, data []byte) (*Message, error)
- func (m *Manager) Respond(subject string, answerFunc AnswerFunc) (unsubscribeFunc, error)
- func (m *Manager) SetTimeout(d time.Duration)
- func (m *Manager) Subscribe(subject string, recFunc ReceiveFunc) (unsubscribeFunc, error)
- func (m *Manager) WaitMsgProcessed()
- type Message
- type ReceiveFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
Szenario *eventHandler[msg.SzenarioEvtMsg]
Alert *eventHandler[msg.AlertMsg]
Incident *eventHandler[msg.IncidentMsg]
// contains filtered or unexported fields
}
func (*Manager) EnsureConnected ¶
func (*Manager) Respond ¶
func (m *Manager) Respond(subject string, answerFunc AnswerFunc) (unsubscribeFunc, error)
func (*Manager) SetTimeout ¶
func (*Manager) Subscribe ¶
func (m *Manager) Subscribe(subject string, recFunc ReceiveFunc) (unsubscribeFunc, error)
func (*Manager) WaitMsgProcessed ¶
func (m *Manager) WaitMsgProcessed()
WaitMsgProcessed waits until the managed cannels have their messages sent
type ReceiveFunc ¶
Click to show internal directories.
Click to hide internal directories.