MCPcopy Create free account
hub / github.com/assembla/cony / DeclareBinding

Function DeclareBinding

declaration.go:49–58  ·  view source on GitHub ↗

DeclareBinding is a way to declare AMQP binding between AMQP queue and exchange

(b Binding)

Source from the content-addressed store, hash-verified

47
48// DeclareBinding is a way to declare AMQP binding between AMQP queue and exchange
49func DeclareBinding(b Binding) Declaration {
50 return func(c Declarer) error {
51 return c.QueueBind(b.Queue.Name,
52 b.Key,
53 b.Exchange.Name,
54 false,
55 b.Args,
56 )
57 }
58}

Callers 1

TestDeclareBindingFunction · 0.85

Calls 1

QueueBindMethod · 0.65

Tested by 1

TestDeclareBindingFunction · 0.68