MCPcopy Create free account

hub / github.com/streadway/amqp / functions

Functions616 in github.com/streadway/amqp

↓ 2 callersFunctionreadTimestamp
(r io.Reader)
read.go:148
↓ 2 callersMethodrecvMethod
(f frame)
channel.go:342
↓ 2 callersFunctionredial
redial continually connects to the URL, exiting the program when no longer possible
_examples/pubsub/pubsub.go:46
↓ 2 callersMethodreleaseChannel
releaseChannel removes a channel from the registry as the final part of the channel lifecycle
connection.go:621
↓ 2 callersMethodresequence
resequence confirms any out of order delivered confirmations
confirms.go:50
↓ 2 callersMethodreserved
reserved returns true if the integer has been allocated
allocator.go:99
↓ 2 callersFunctionsetup
Every connection should declare the topology they expect
reconnect_test.go:10
↓ 2 callersMethodwait
()
spec091.go:1176
↓ 2 callersMethodwrite
(io.Writer)
types.go:309
↓ 1 callersMethodClose
()
shared_test.go:27
↓ 1 callersMethodConnectionState
ConnectionState returns basic TLS details of the underlying transport. Returns a zero value when the underlying connection does not implement Connecti
connection.go:253
↓ 1 callersFunctionDefaultDial
DefaultDial establishes a connection when config.Dial is not provided
connection.go:115
↓ 1 callersMethodDomain
(field Field)
spec/gen.go:430
↓ 1 callersMethodFieldName
(field Field)
spec/gen.go:440
↓ 1 callersMethodLocalAddr
* LocalAddr returns the local TCP peer address, or ":0" (the zero value of net.TCPAddr) as a fallback default value if the underlying transport does n
connection.go:241
↓ 1 callersMethodNativeType
(amqpType string)
spec/gen.go:465
↓ 1 callersFunctionNew
New creates a new consumer state instance, and automatically attempts to connect to the server.
example_client_test.go:69
↓ 1 callersFunctionNewConsumer
(amqpURI, exchange, exchangeType, queueName, key, ctag string)
_examples/simple-consumer/consumer.go:57
↓ 1 callersMethodNotifyBlocked
* NotifyBlocked registers a listener for RabbitMQ specific TCP flow control method extensions connection.blocked and connection.unblocked. Flow contr
connection.go:296
↓ 1 callersMethodNotifyClose
* NotifyClose registers a listener for close events either initiated by an error accompanying a connection.close method or by a normal shutdown. On n
connection.go:272
↓ 1 callersMethodNotifyConfirm
* NotifyConfirm calls NotifyPublish and starts a goroutine sending ordered Ack and Nack DeliveryTag to the respective channels. For strict ordering,
channel.go:555
↓ 1 callersMethodNotifyFlow
* NotifyFlow registers a listener for basic.flow methods sent by the server. When `false` is sent on one of the listener channels, all publishers shou
channel.go:493
↓ 1 callersMethodPlainAuth
PlainAuth returns a PlainAuth structure based on the parsed URI's Username and Password fields.
uri.go:121
↓ 1 callersMethodPush
Push will push data onto the queue, and wait for a confirm. If no confirms are received until within the resendTimeout, it continuously re-sends messa
example_client_test.go:205
↓ 1 callersMethodQueueInspect
* QueueInspect passively declares a queue by name to inspect the current message count and consumer count. Use this method to check how many messages
channel.go:837
↓ 1 callersMethodQueuePurge
* QueuePurge removes all messages from the named queue which are not waiting to be acknowledged. Messages that have been delivered but have not yet b
channel.go:950
↓ 1 callersMethodRecover
* Recover redelivers all unacknowledged deliveries on this channel. When requeue is false, messages will be redelivered to the original consumer. Wh
channel.go:1534
↓ 1 callersMethodResponse
()
auth.go:16
↓ 1 callersMethodServe
Captures the header for each accepted connection
tls_test.go:52
↓ 1 callersMethodSetReadDeadline
(time.Time)
connection.go:111
↓ 1 callersMethodShutdown
()
_examples/simple-consumer/consumer.go:141
↓ 1 callersMethodTxCommit
* TxCommit atomically commits all publishings and acknowledgments for a single queue and immediately start a new transaction. Calling this method wit
channel.go:1430
↓ 1 callersMethodTxRollback
* TxRollback atomically rolls back all publishings and acknowledgments for a single queue and immediately start a new transaction. Calling this metho
channel.go:1444
↓ 1 callersMethodUnsafePush
UnsafePush will push to the queue without checking for confirmation. It returns an error if it fails to connect. No guarantees are provided for whethe
example_client_test.go:236
↓ 1 callersMethodadd
On key conflict, close the previous channel.
consumers.go:85
↓ 1 callersMethodallocateChannel
allocateChannel records but does not open a new channel with a unique id. This method is the initial part of the channel lifecycle and paired with rel
connection.go:600
↓ 1 callersFunctionassertMessageCrc32
Pulls out the CRC and verifies the remaining content against the CRC
integration_test.go:1848
↓ 1 callersMethodbuffer
(in chan *Delivery, out chan Delivery)
consumers.go:54
↓ 1 callersMethodchangeChannel
changeChannel takes a new channel to the queue, and updates the channel listeners to reflect this.
example_client_test.go:192
↓ 1 callersMethodchangeConnection
changeConnection takes a new connection to the queue, and updates the close listener to reflect this.
example_client_test.go:184
↓ 1 callersMethodclose
()
consumers.go:114
↓ 1 callersFunctionconfirmOne
One would typically keep a channel of publishings, a sequence number, and a set of unacknowledged sequence numbers and loop until the publishing chann
_examples/simple-producer/producer.go:104
↓ 1 callersMethodconnect
connect will create a new AMQP connection
example_client_test.go:106
↓ 1 callersMethodconnectionClose
()
client_test.go:187
↓ 1 callersFunctionconsume
(url, queue string)
reconnect_test.go:28
↓ 1 callersMethoddemux
All methods sent to the connection channel should be synchronous so we can handle them directly without a framing component
connection.go:432
↓ 1 callersMethoddispatch0
(f frame)
connection.go:440
↓ 1 callersMethoddispatchClosed
section 2.3.7: "When a peer decides to close a channel or connection, it sends a Close method. The receiving peer MUST respond to a Close with a Clos
connection.go:494
↓ 1 callersMethoddispatchN
(f frame)
connection.go:471
↓ 1 callersMethodexpectBytes
(b []byte)
client_test.go:56
↓ 1 callersFunctiongenerateCrc32Random
Creates a random body size with a leading 32-bit CRC in network byte order that verifies the remaining slice
integration_test.go:1865
↓ 1 callersFunctionhandle
(deliveries <-chan amqp.Delivery, done chan error)
_examples/simple-consumer/consumer.go:157
↓ 1 callersMethodhandleReInit
handleReconnect will wait for a channel error and then continuously attempt to re-initialize both channels
example_client_test.go:120
↓ 1 callersMethodhandleReconnect
handleReconnect will wait for a connection error on notifyConnClose, and then continuously attempt to reconnect.
example_client_test.go:81
↓ 1 callersMethodheartbeater
Ensures that at least one frame is being sent at the tuned interval with a jitter tolerance of 1s
connection.go:543
↓ 1 callersFunctionidentity
identity returns the same host/process unique string for the lifetime of this process so that subscriber reconnections reuse the same queue name.
_examples/pubsub/pubsub.go:150
↓ 1 callersMethodinit
init will initialize channel & declare queue
example_client_test.go:150
↓ 1 callersMethodisCapable
Convenience method to inspect the Connection.Properties["capabilities"] Table for server identified capabilities like "basic.ack" or "confirm.select".
connection.go:591
↓ 1 callersFunctionisSoftExceptionCode
(code int)
spec091.go:49
↓ 1 callersFunctionloggedConnection
(t *testing.T, conn *Connection, name string)
integration_test.go:1791
↓ 1 callersFunctionmakeConsumers
()
consumers.go:47
↓ 1 callersFunctionmax
(a, b int)
connection.go:833
↓ 1 callersFunctionnewReturn
(msg basicReturn)
return.go:39
↓ 1 callersMethodopenChannel
openChannel allocates and opens a channel, must be paired with closeChannel
connection.go:630
↓ 1 callersMethodopenComplete
openComplete performs any final Connection initialization dependent on the connection handshake and clears any state needed for TLS and AMQP handshaki
connection.go:819
↓ 1 callersMethodopenStart
(config Config)
connection.go:711
↓ 1 callersMethodopenTune
(config Config, auth Authentication)
connection.go:739
↓ 1 callersMethodopenVhost
(config Config)
connection.go:803
↓ 1 callersMethodparseBodyFrame
(channel uint16, size uint32)
read.go:431
↓ 1 callersMethodparseHeaderFrame
(channel uint16, size uint32)
read.go:334
↓ 1 callersMethodparseHeartbeatFrame
(channel uint16, size uint32)
read.go:446
↓ 1 callersMethodparseMethodFrame
(channel uint16, size uint32)
spec091.go:2741
↓ 1 callersFunctionpickSASLMechanism
Finds the first mechanism preferred by the client that the server supports.
auth.go:52
↓ 1 callersFunctionpublish
(amqpURI, exchange, exchangeType, routingKey, body string, reliable bool)
_examples/simple-producer/producer.go:34
↓ 1 callersFunctionpublish
publish publishes messages to a reconnecting session to a fanout exchange. It receives from the application specific source of messages.
_examples/pubsub/pubsub.go:89
↓ 1 callersFunctionpublishAllTheThings
(conn *amqp.Connection)
examples_test.go:373
↓ 1 callersFunctionread
read is this application's translation to the message format, scanning from stdin.
_examples/pubsub/pubsub.go:194
↓ 1 callersFunctionreadArray
(r io.Reader)
read.go:300
↓ 1 callersFunctionreadDecimal
(r io.Reader)
read.go:124
↓ 1 callersMethodreader
Reads each frame off the IO and hand off to the connection object that will demux the streams and dispatch to one of the opened channels or handle on
connection.go:515
↓ 1 callersMethodsendClosed
(msg message)
channel.go:206
↓ 1 callersMethodsendOpen
(msg message)
channel.go:219
↓ 1 callersMethodshutdown
shutdown is called by Connection after the channel has been removed from the connection registry.
channel.go:92
↓ 1 callersFunctionstartTLSServer
(t *testing.T, cfg *tls.Config)
tls_test.go:62
↓ 1 callersFunctionsubscribe
subscribe consumes deliveries from an exclusive queue from a fanout exchange and sends to the application specific messages chan.
_examples/pubsub/pubsub.go:160
↓ 1 callersFunctiontlsClientConfig
()
tls_test.go:29
↓ 1 callersFunctiontlsServerConfig
()
tls_test.go:12
↓ 1 callersFunctionuniqueConsumerTag
see writeShortstr
consumers.go:19
↓ 1 callersFunctionvalidateField
(f interface{})
types.go:227
↓ 1 callersMethodwait
()
types.go:272
↓ 1 callersMethodwait
()
spec091.go:1863
↓ 1 callersFunctionwrite
write is this application's subscriber of application messages, printing to stdout.
_examples/pubsub/pubsub.go:208
↓ 1 callersFunctionwriteField
* 'A': []interface{} 'D': Decimal 'F': Table 'I': int32 'S': string 'T': time.Time 'V': nil 'b': byte 'd': float64 'f': float32 'l': int64 's': int16
write.go:287
MethodAMQPlainAuth
AMQPlainAuth returns a PlainAuth structure based on the parsed URI's Username and Password fields.
uri.go:130
MethodAck
* Ack acknowledges a delivery by its delivery tag when having been consumed with Channel.Consume or Channel.Get. Ack acknowledges all message receive
channel.go:1550
MethodAck
* Ack delegates an acknowledgement through the Acknowledger interface that the client or server has finished work on a delivery. All deliveries in AM
delivery.go:123
FunctionBenchmarkSequentialBufferedConfirms
(t *testing.B)
confirms_test.go:105
MethodClose
()
shared_test.go:63
MethodClose
Close will cleanly shutdown the channel and connection.
example_client_test.go:272
MethodClose
Close closes all listeners, discarding any out of sequence confirmations
confirms.go:85
← previousnext →101–200 of 616, ranked by callers