1
0
mirror of https://github.com/eventials/goevents.git synced 2025-05-01 13:48:56 +08:00
2018-02-11 14:56:48 -02:00

13 lines
325 B
Go

package messaging
type Connection interface {
Consumer(autoAck bool, exchange, queue string) (Consumer, error)
Producer(exchange string) (Producer, error)
Close()
NotifyConnectionClose() <-chan error
NotifyReestablish() <-chan bool
WaitUntilConnectionCloses()
WaitUntilConnectionReestablished()
IsConnected() bool
}