Documentation ¶
Index ¶
- type AMQP
- func (a *AMQP) Ack(message *brk.Message) error
- func (a *AMQP) Connect(errChan chan error) bool
- func (a *AMQP) GetChannel() *amqp.Channel
- func (a *AMQP) GetName() string
- func (a *AMQP) Publish(target string, message *brk.Message, options map[string]interface{}) (string, error)
- func (a *AMQP) Subscribe(ctx context.Context, source string, chErr chan error) <-chan brk.Message
- type AMQPConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AMQP ¶
type AMQP struct { Name string Config *AMQPConfig Client *amqp.Connection Channel *amqp.Channel Errors chan error }
func NewAMQP ¶
func NewAMQP(name string, config *AMQPConfig) *AMQP
func (*AMQP) GetChannel ¶
type AMQPConfig ¶
func (*AMQPConfig) GetConnectionString ¶
func (ac *AMQPConfig) GetConnectionString() string
Click to show internal directories.
Click to hide internal directories.