Documentation ¶
Index ¶
- func ApplyTopology(topology *topology.Topology, connector *Connector)
- func DecomposeTopology(t string) (result *topology.Topology)
- type Callback
- type CallbackWithChannel
- type Channel
- type Connection
- type Connector
- func (c *Connector) EnableHealthchecks()
- func (c *Connector) InitializeWith(callback Callback) *Connector
- func (c *Connector) MaintainChannel(channel string, callback CallbackWithChannel) *Connector
- func (c *Connector) RunForever()
- func (c *Connector) WithOpenChannel(channel string, callback CallbackWithChannel)
- func (c *Connector) WithOpenConnection(callback Callback)
- func (c *Connector) WithTopologyFrom(reader io.Reader) *Connector
- type Credentials
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyTopology ¶
func DecomposeTopology ¶
Types ¶
type Callback ¶
type Callback func(connection *Connection)
type CallbackWithChannel ¶
type CallbackWithChannel func(connection *Connection, channel *Channel)
type Connection ¶
type Connection struct { amqp.Connection Id int64 OpenChannels map[string]*Channel Broken bool Prepared bool ErrorNotifications chan *amqp.Error BlockingNotification chan amqp.Blocking }
func NewConnection ¶
func NewConnection(connectionString string) *Connection
func (*Connection) EnableNotificationChannels ¶
func (c *Connection) EnableNotificationChannels()
func (*Connection) IsReady ¶
func (c *Connection) IsReady() bool
func (*Connection) OpenChannel ¶
func (c *Connection) OpenChannel(name string) *Channel
func (*Connection) Purge ¶
func (c *Connection) Purge()
type Connector ¶
type Connector struct { Credentials CurrentConnection *Connection Reconnect struct { *sync.Mutex } Callbacks struct { *sync.Mutex // contains filtered or unexported fields } // contains filtered or unexported fields }
func (*Connector) EnableHealthchecks ¶
func (c *Connector) EnableHealthchecks()
func (*Connector) InitializeWith ¶
func (*Connector) MaintainChannel ¶
func (c *Connector) MaintainChannel(channel string, callback CallbackWithChannel) *Connector
Setting up callbacks for connection open
func (*Connector) RunForever ¶
func (c *Connector) RunForever()
func (*Connector) WithOpenChannel ¶
func (c *Connector) WithOpenChannel(channel string, callback CallbackWithChannel)
func (*Connector) WithOpenConnection ¶
type Credentials ¶
type Credentials struct {
RmqConnection string
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.