Documentation ¶
Index ¶
- func Errorf(error error) error
- 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
- type SnsMessage
- type TestBus
- type TestEnvelope
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) AppVerboseLog ¶ added in v0.0.42
AppVerboseLog provides user space verbose logging
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
type MonitorData struct { Name string `json:"Name" validate:"required"` Payload string `json:"Payload" validate:"required"` }
MonitorData is supplied to a monitoring Handler
func ParseIncomingMonitorMessage ¶ added in v0.0.44
func ParseIncomingMonitorMessage(payload string) (*MonitorData, error)
ParseIncomingMonitorMessage is a user space helper function
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
type SnsMessage ¶ added in v0.0.47
type SnsMessage struct {
Message string
}
SnsMessage represents an incoming aws SNS message
func ParseIncomingSnsMessage ¶ added in v0.0.47
func ParseIncomingSnsMessage(payload string) (*SnsMessage, error)
ParseIncomingSnsMessage populates the SnsMessage struct from the payload
type TestBus ¶ added in v0.0.46
type TestBus struct {
SendList []TestEnvelope
}
TestBus is available to be used for user space tests
func (*TestBus) AppVerboseLog ¶ added in v0.0.46
AppVerboseLog is a wrapper for verbose logging
type TestEnvelope ¶ added in v0.0.46
type TestEnvelope struct {
// contains filtered or unexported fields
}
TestEnvelope is available to be used for user space tests