Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct { Closed chan bool // contains filtered or unexported fields }
func CreateNewAndConnect ¶
func CreateNewAndConnect(serverURL string, cfg Config) (*Connection, error)
func NewConnection ¶
func NewConnection(serverURL string, cfg Config) *Connection
func (*Connection) Close ¶
func (conn *Connection) Close()
func (*Connection) Connect ¶
func (conn *Connection) Connect() error
func (*Connection) WhenConnected ¶
func (conn *Connection) WhenConnected(handler onSuccessConn) *Connection
type MessageHandler ¶
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
func (*Queue) Listen ¶
func (queue *Queue) Listen(handler MessageHandler) error
type TopicExchange ¶
type TopicExchange struct {
// contains filtered or unexported fields
}
func NewTopicExchange ¶
func NewTopicExchange(exchangeName string, queueName string, topics []string, conn *Connection) (TopicExchange, error)
func (*TopicExchange) Close ¶
func (ex *TopicExchange) Close()
func (*TopicExchange) IsClosed ¶
func (ex *TopicExchange) IsClosed() bool
func (*TopicExchange) Listen ¶
func (ex *TopicExchange) Listen(handler MessageHandler) error
Click to show internal directories.
Click to hide internal directories.