MCPcopy Create free account
hub / github.com/google/go-cloud / bindQueue

Function bindQueue

pubsub/rabbitpubsub/rabbit_test.go:275–282  ·  view source on GitHub ↗
(conn amqpConnection, queueName, exchangeName string)

Source from the content-addressed store, hash-verified

273}
274
275func bindQueue(conn amqpConnection, queueName, exchangeName string) error {
276 ch, err := conn.Channel()
277 if err != nil {
278 return err
279 }
280 defer ch.Close()
281 return ch.QueueDeclareAndBind(queueName, exchangeName)
282}
283
284type rabbitAsTest struct {
285 usingFake bool

Callers 1

CreateSubscriptionMethod · 0.85

Calls 3

ChannelMethod · 0.65
CloseMethod · 0.65
QueueDeclareAndBindMethod · 0.65

Tested by

no test coverage detected