Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MQServer ¶
type MQServer struct {
// contains filtered or unexported fields
}
MQServer provides a wrapper over the message queue.
func NewMQServer ¶
func NewMQServer( inboundMQAddr string, inboundChName string, outboundMQAddr string, outboundChName string, handlers map[string]map[string]func(msg messages.Message), ) (*MQServer, error)
NewMQServer creates a new message queue server. inboundMQAddr is the address of the inbound MQ this server listens from. inboundChName is the channel name of inbound MQ. outboundMQAddr is the address of the outbound MQ this server pushes to. outboundChName is the channel name of the outbound MQ. handlers are handlers for different messages depending on the message version & message type.
Click to show internal directories.
Click to hide internal directories.