MCPcopy Create free account

hub / github.com/armon/relay / functions

Functions134 in github.com/armon/relay

↓ 72 callersMethodClose
()
broker/broker.go:8
↓ 30 callersFunctionNew
New will create a new Relay that can be used to create new publishers or consumers. The caller should no longer modify the configuration once New is i
relay.go:86
↓ 23 callersFunctionAMQPHost
()
relay_test.go:22
↓ 22 callersFunctionCheckInteg
(t *testing.T)
relay_test.go:16
↓ 21 callersMethodConsumer
(queue string)
broker/broker.go:9
↓ 20 callersMethodPublish
(in interface{})
broker/broker.go:16
↓ 19 callersMethodPublisher
(queue string)
broker/broker.go:10
↓ 14 callersMethodAck
()
broker/broker.go:25
↓ 14 callersMethodConsume
(out interface{})
broker/broker.go:22
↓ 11 callersMethodMax
Max returns the highest priority number.
pq/pq.go:85
↓ 11 callersFunctionNewPriorityQueue
NewPriorityQueue returns a new priority queue from which a consumer or producer at a given priority can be easily retrieved.
pq/pq.go:47
↓ 8 callersMethodConsumeTimeout
(out interface{}, timeout time.Duration)
broker/broker.go:24
↓ 8 callersMethodMin
Min returns the lowest priority number. This is always 0.
pq/pq.go:90
↓ 8 callersMethodPublish
Publish will publish a message at a given priority. The publisher is automatically closed afterward.
pq/pq.go:127
↓ 8 callersMethodRetryBroker
RetryBroker returns a new retrying broker with the given settings.
retry.go:41
↓ 6 callersMethodClose
Close will call a shutdown on all publishers we have used. By default, all publishers are kept open so that multiple calls to establish the sessions a
pq/pq.go:270
↓ 6 callersMethodConsume
Consume is the public method for consuming data out of a priority queue. It will block until data is received, and returns the priority level of the c
pq/pq.go:251
↓ 6 callersMethodConsumeAck
(out interface{})
broker/broker.go:23
↓ 6 callersMethodNack
()
broker/broker.go:26
↓ 4 callersMethodconsumer
consumer is used to connect the consumer to the relay queue.
retry.go:94
↓ 4 callersMethodconsumer
consumer returns a new consumer with the indicated priority.
pq/pq.go:112
↓ 4 callersMethodpublisher
publisher returns a new publisher from the priority indicated by pri.
pq/pq.go:95
↓ 4 callersFunctionqueueName
Converts the user input name into the actual name
util.go:12
↓ 4 callersFunctiontestSendRecv
(t *testing.T, r *Relay)
relay_test.go:26
↓ 3 callersMethoddiscard
discard is used to remove a broken consumer.
retry.go:117
↓ 3 callersFunctionrandomStagger
randomStagger returns a randomized duration +/- 25% of the input.
retry_test.go:241
↓ 2 callersMethodConsumeTimeout
(out interface{}, timeout time.Duration)
inmem/inmem.go:99
↓ 2 callersMethodConsumerWithRoutingKey
ConsumerWithRoutingKey will return a new handle that can be used to consume messages from a given queue and routing key.
relay.go:266
↓ 2 callersFunctionIsDecodeFailure
IsDecodeFailure is a helper to determine if the error returned is a deserialization error.
consumer.go:176
↓ 2 callersMethodPublisherWithRoutingKey
PublisherWithRoutingKey will return a new handle that can be used to publish messages to the given queue and routing key.
relay.go:321
↓ 2 callersFunctionchannelName
Generates a channel name in the form of <host>.<rand> The random value is a hex encoding of 4 random bytes.
util.go:23
↓ 2 callersMethodconsume
consume consumes a message from the priority queue. This is a blocking call which will watch every queue at every priority until a message is received
pq/pq.go:156
↓ 2 callersMethoddeclareQueue
Ensures the given queue exists and is bound to the exchange
relay.go:205
↓ 2 callersMethodgetChan
Used to get a new channel, possibly on a cached connection
relay.go:166
↓ 2 callersMethodpublisher
publisher is used to connect the publisher to the relay queue.
retry.go:259
↓ 2 callersFunctionqueueName
queueName formats the name of a priority queue by appending its priority to the user-provided queue prefix.
pq/pq.go:80
↓ 1 callersMethodAck
Ack will send an acknowledgement to the server that the last message returned by Consume was processed. If EnableMultiAck is true, then all messages u
consumer.go:100
↓ 1 callersMethodAck
Ack marks message(s) as delivered.
retry.go:141
↓ 1 callersMethodAck
()
inmem/inmem.go:143
↓ 1 callersFunctionConfigFromURI
ConfigFromURI attempts to parse the given AMQP URI according to the spec and return a relay config based on it. See http://www.rabbitmq.com/uri-spec.h
relay.go:59
↓ 1 callersMethodConsume
Consume will consume the next available message. The message must be acknowledged with Ack() or Nack() before the next call to Consume unless EnableMu
consumer.go:80
↓ 1 callersMethodConsume
Consume consumes a single message from the queue.
retry.go:182
↓ 1 callersMethodConsumeCancel
ConsumeCancel allows passing in a channel to signal that we should stop trying to consume a message. Internally this channel will be checked on a shor
pq/pq.go:258
↓ 1 callersMethodConsumeTimeout
Consume will consume the next available message or times out waiting. The message must be acknowledged with Ack() or Nack() before the next call to Co
consumer.go:27
↓ 1 callersMethodConsumeTimeout
ConsumeTimeout consumes a single message from the queue with an upper bound on the time spent waiting.
retry.go:188
↓ 1 callersMethodConsumer
(q string)
inmem/inmem.go:48
↓ 1 callersMethodContentType
()
serialization.go:13
↓ 1 callersMethodContentType
()
serialization.go:21
↓ 1 callersMethodContentType
()
serialization.go:36
↓ 1 callersMethodNack
Nack will send a negative acknowledgement to the server that the last message returned by Consume was not processed and should be redelivered. If Enab
consumer.go:119
↓ 1 callersMethodNack
()
inmem/inmem.go:152
↓ 1 callersFunctionNewInmemBroker
()
inmem/inmem.go:36
↓ 1 callersMethodPublisher
(q string)
inmem/inmem.go:56
↓ 1 callersMethodRelayDecode
(io.Reader, interface{})
serialization.go:15
↓ 1 callersMethodRelayDecode
(r io.Reader, o interface{})
serialization.go:28
↓ 1 callersMethodRelayDecode
(r io.Reader, o interface{})
serialization.go:45
↓ 1 callersMethodRelayEncode
(io.Writer, interface{})
serialization.go:14
↓ 1 callersMethodRelayEncode
(w io.Writer, e interface{})
serialization.go:24
↓ 1 callersMethodRelayEncode
(w io.Writer, e interface{})
serialization.go:40
↓ 1 callersMethoddiscard
discard is used to remove a broken publisher.
retry.go:282
↓ 1 callersMethodgetConn
Used to get a new server connection
relay.go:126
↓ 1 callersMethodwatchConn
Watches for connection errors and closes the connection
relay.go:141
MethodBroker
Broker is used to wrap a Relay connection in one that is Broker compatible.
relay.go:376
MethodClose
Close will shutdown the Consumer. Any messages that are still in flight will be Nack'ed.
consumer.go:137
MethodClose
Close will shutdown the publisher
publisher.go:92
MethodClose
Close will shutdown the relay. It is best to first Close all the Consumer and Publishers, as this will close the underlying connections.
relay.go:230
MethodClose
()
relay.go:384
MethodClose
Close closes the broker.
retry.go:74
MethodClose
Close closes the consumer.
retry.go:132
MethodClose
Close closes the publisher.
retry.go:297
MethodClose
()
inmem/inmem.go:43
MethodClose
()
inmem/inmem.go:64
MethodClose
()
inmem/inmem.go:79
MethodClose
()
broker/broker.go:15
MethodClose
()
broker/broker.go:21
MethodConsume
(out interface{})
inmem/inmem.go:87
MethodConsumeAck
ConsumeAck will consume the next message and acknowledge that the message has been received. This prevents the message from being redelivered, and no
consumer.go:87
MethodConsumeAck
ConsumeAck is used to consume with automatic ack. The consume operation is able to be retried, but if a message is consumed and the acknowledgement fa
retry.go:174
MethodConsumeAck
(out interface{})
inmem/inmem.go:91
MethodConsumer
Consumer will return a new handle that can be used to consume messages from a given queue.
relay.go:260
MethodConsumer
(q string)
relay.go:392
MethodConsumer
Consumer returns a new retrying broker.Consumer.
retry.go:63
MethodNack
Nack sends message(s) back to the queue.
retry.go:155
MethodPublish
Publish will send the message to the server to be consumed
publisher.go:30
MethodPublish
Publish publishes a single message to the queue. If an error is encountered, the broker automatically tries to replace the underlying channel and subm
retry.go:310
MethodPublish
(in interface{})
inmem/inmem.go:69
MethodPublisher
Publisher will return a new handle that can be used to publish messages to the given queue.
relay.go:315
MethodPublisher
(q string)
relay.go:388
MethodPublisher
Publisher returns a new retrying broker.Publisher.
retry.go:52
FunctionTestChannelName
(t *testing.T)
util_test.go:16
FunctionTestCloseConsume
(t *testing.T)
relay_test.go:511
FunctionTestClosePendingMsg
(t *testing.T)
relay_test.go:419
FunctionTestClosePublish
(t *testing.T)
relay_test.go:542
FunctionTestCloseRelayInUse
(t *testing.T)
relay_test.go:348
FunctionTestConfigDefaults
(t *testing.T)
relay_test.go:81
FunctionTestConfigFromURI
(t *testing.T)
relay_test.go:67
FunctionTestConsumeTimeout
(t *testing.T)
relay_test.go:623
FunctionTestConsumeWithoutAck
(t *testing.T)
relay_test.go:280
FunctionTestConsumerMultiClose
(t *testing.T)
relay_test.go:174
FunctionTestCustomExchange
(t *testing.T)
relay_test.go:145
next →1–100 of 134, ranked by callers