Documentation ¶
Index ¶
- func ResetMqInMemory()
- type Bus
- type Handler
- type Host
- type MonitorData
- type MqInMemory
- func (mq *MqInMemory) Begin() error
- func (mq *MqInMemory) Commit() error
- func (mq *MqInMemory) Init() error
- func (mq *MqInMemory) Move(fromS string, toS string)
- func (mq *MqInMemory) Name() string
- func (mq *MqInMemory) Retrieve() (*string, error)
- func (mq *MqInMemory) Rollback() error
- func (mq *MqInMemory) Send(payload string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Host ¶
type Host struct { Name string Mq mq MqURL *url.URL LocalSendQ appres.Queue AuditQ appres.Queue ErrorQ appres.Queue Handler map[string]*handlerWrapper // contains filtered or unexported fields }
Host is the root of GSB
func (*Host) AddHandler ¶
AddHandler allows user space code to Add Handlers to GSB
func (*Host) Send ¶ added in v0.0.21
Send is the channel for user space code to send a message with GSB
func (*Host) SendMessage ¶ added in v0.0.2
SendMessage wraps a message in an envelope and puts it to the passed in queue
type MonitorData ¶ added in v0.0.2
MonitorData is supplied to a monitoring Handler
type MqInMemory ¶
type MqInMemory struct { List []string // contains filtered or unexported fields }
MqInMemory swap in queue for testing
func NewMqInMemory ¶
func NewMqInMemory(url *url.URL) *MqInMemory
NewMqInMemory returns the singleton, creating if necessary
func NewMqInMemoryFromString ¶
func NewMqInMemoryFromString(urlString string) *MqInMemory
NewMqInMemoryFromString adapter for NewMqInMemory
func (*MqInMemory) Move ¶
func (mq *MqInMemory) Move(fromS string, toS string)
Move message to a different queue
func (*MqInMemory) Retrieve ¶
func (mq *MqInMemory) Retrieve() (*string, error)
Retrieve wrapper for InMemory Queue
func (*MqInMemory) Rollback ¶ added in v0.0.24
func (mq *MqInMemory) Rollback() error
Rollback Transaction
func (*MqInMemory) Send ¶
func (mq *MqInMemory) Send(payload string) error
Send wrapper for InMemory Queue
Source Files ¶
Click to show internal directories.
Click to hide internal directories.