Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/streadway/amqp
/ functions
Functions
616 in github.com/streadway/amqp
⨍
Functions
616
◇
Types & classes
119
↓ 103 callers
Method
Close
* Close initiate a clean channel closure by sending a close message with the error code set to '200'. It is safe to call this method multiple times.
channel.go:428
↓ 90 callers
Method
Write
(b []byte)
shared_test.go:23
↓ 88 callers
Method
Read
(b []byte)
shared_test.go:19
↓ 73 callers
Method
Channel
* Channel opens a unique, concurrent server channel to process the bulk of AMQP messages. Any error from methods on this receiver will render the rec
connection.go:657
↓ 62 callers
Method
read
(r io.Reader)
spec091.go:2736
↓ 56 callers
Function
readShortstr
(r io.Reader)
read.go:93
↓ 55 callers
Function
writeShortstr
(w io.Writer, s string)
write.go:239
↓ 52 callers
Function
integrationConnection
Returns a connection to the AMQP if the AMQP_URL environment variable is set and a connection can be established.
integration_test.go:1800
↓ 48 callers
Method
Publish
* Publish sends a Publishing from the client to an exchange on the server. When you want a single message to be delivered to a single queue, you can
channel.go:1326
↓ 40 callers
Method
QueueDeclare
* QueueDeclare declares a queue to hold messages and deliver to consumers. Declaring creates a queue if it doesn't already exist, or ensures that an e
channel.go:751
↓ 27 callers
Method
String
()
uri.go:137
↓ 27 callers
Function
hasProperty
Checks if this bit mask matches the flags bitset
read.go:330
↓ 25 callers
Method
recv
drops all but method frames expected on the given channel
client_test.go:96
↓ 24 callers
Method
call
Performs a request/response call for when the message is not NoWait and is specified as Synchronous.
channel.go:170
↓ 23 callers
Method
Consume
* Consume immediately starts delivering queued messages. Begin receiving on the returned chan Delivery before any other operation on the Connection o
channel.go:1052
↓ 21 callers
Method
send
(channel int, m message)
client_test.go:67
↓ 15 callers
Method
ExchangeDeclare
* ExchangeDeclare declares an exchange on the server. If the exchange does not already exist, the server will create it. If the exchange exists, the
channel.go:1140
↓ 15 callers
Function
Open
* Open accepts an already established connection, or other io.ReadWriteCloser as a transport. Use this method if you have established a TLS connectio
connection.go:223
↓ 14 callers
Function
defaultConfig
()
client_test.go:28
↓ 14 callers
Function
newSession
(t *testing.T)
client_test.go:46
↓ 13 callers
Method
Error
()
types.go:82
↓ 13 callers
Function
ParseURI
ParseURI attempts to parse the given AMQP URI according to the spec. See http://www.rabbitmq.com/uri-spec.html. Default values for the fields are: S
uri.go:55
↓ 13 callers
Method
send
send calls Channel.sendOpen() during normal operation. After the channel has been closed, send calls Channel.sendClosed(), ensuring only 'channel.clo
channel.go:155
↓ 12 callers
Method
Ack
(tag uint64, multiple bool)
delivery.go:20
↓ 12 callers
Function
Dial
Dial accepts a string in the AMQP URI format and returns a new Connection over TCP using PlainAuth. Defaults to a server heartbeat interval of 10 sec
connection.go:140
↓ 12 callers
Method
connectionOpen
()
client_test.go:178
↓ 11 callers
Function
readTable
* Field tables are long strings that contain packed name-value pairs. The name-value pairs are encoded as short string defining the name, and octet
read.go:270
↓ 11 callers
Function
writeTable
(w io.Writer, table Table)
write.go:403
↓ 10 callers
Method
Get
* Get synchronously receives a single Delivery from the head of a queue from the server to the client. In almost all cases, using Channel.Consume wil
channel.go:1384
↓ 10 callers
Method
Validate
Validate returns and error if any Go types in the table are incompatible with AMQP types.
types.go:253
↓ 10 callers
Method
next
Next reserves and returns the next available number out of the range between low and high. If no number is available, false is returned. O(N) worst
allocator.go:66
↓ 10 callers
Method
transition
(f func(*Channel, frame) error)
channel.go:337
↓ 9 callers
Function
DialConfig
DialConfig accepts a string in the AMQP URI format and a configuration for the transport and connection setup, returning a new Connection. Defaults t
connection.go:164
↓ 9 callers
Method
NotifyPublish
* NotifyPublish registers a listener for reliable publishing. Receives from this chan for every publish after Channel.Confirm will be in order startin
channel.go:598
↓ 9 callers
Method
One
one confirms one publishing and all following in the publishing sequence
confirms.go:61
↓ 9 callers
Method
QueueDelete
* QueueDelete removes the queue from the server including all bindings then purges the messages based on server configuration, returning the number of
channel.go:981
↓ 9 callers
Method
reserve
reserve claims the bit if it is not already claimed, returning true if successfully claimed.
allocator.go:90
↓ 8 callers
Method
Confirm
* Confirm puts this channel into confirm mode so that the client can ensure all publishings have successfully been received by the server. After ente
channel.go:1506
↓ 8 callers
Method
NotifyClose
* NotifyClose registers a listener for when the server sends a channel or connection exception in the form of a Connection.Close or Channel.Close meth
channel.go:447
↓ 8 callers
Method
channelOpen
(id int)
client_test.go:192
↓ 8 callers
Function
integrationURLFromEnv
* * Support for integration tests */
integration_test.go:1783
↓ 8 callers
Function
readLongstr
(r io.Reader)
read.go:106
↓ 7 callers
Method
Listen
(l chan Confirmation)
confirms.go:23
↓ 7 callers
Method
QueueBind
* QueueBind binds an exchange to a queue so that publishings to the exchange will be routed to the queue when the publishing routing key matches the b
channel.go:899
↓ 7 callers
Function
newAllocator
NewAllocator reserves and frees integers out of a range between low and high. O(N) worst case space used, where N is maximum allocated, divided by si
allocator.go:27
↓ 7 callers
Function
writeLongstr
(w io.Writer, s string)
write.go:255
↓ 6 callers
Method
IsClosed
IsClosed returns true if the connection is marked as closed, otherwise false is returned.
connection.go:354
↓ 6 callers
Function
assertConsumeBody
(t *testing.T, messages <-chan Delivery, want []byte)
integration_test.go:1833
↓ 6 callers
Function
newConfirms
newConfirms allocates a confirms
confirms.go:15
↓ 6 callers
Method
send
(f frame)
connection.go:358
↓ 6 callers
Method
shutdown
(err *Error)
connection.go:386
↓ 5 callers
Method
Nack
(tag uint64, multiple bool, requeue bool)
delivery.go:21
↓ 5 callers
Method
WriteFrame
(frame frame)
write.go:18
↓ 5 callers
Method
call
(req message, res ...message)
connection.go:661
↓ 5 callers
Method
channel
()
types.go:310
↓ 4 callers
Method
ExchangeDelete
* ExchangeDelete removes the named exchange from the server. When an exchange is deleted all queue bindings on the exchange are also deleted. If this
channel.go:1203
↓ 4 callers
Method
Multiple
multiple confirms all publishings up until the delivery tag
confirms.go:74
↓ 4 callers
Method
Qos
* Qos controls how many messages or how many bytes the server will try to keep on the network for consumers before receiving delivery acks. The inten
channel.go:647
↓ 4 callers
Method
ReadFrame
* Reads a frame from an input stream and returns an interface that can be cast into one of the following: methodFrame PropertiesFrame bodyFr
read.go:46
↓ 4 callers
Method
cancel
(tag string)
consumers.go:100
↓ 4 callers
Method
dispatch
Eventually called via the state machine from the connection's reader goroutine, so assumes serialized access.
channel.go:274
↓ 4 callers
Method
expectAMQP
()
client_test.go:153
↓ 4 callers
Method
getContent
()
types.go:279
↓ 4 callers
Function
integrationQueue
Returns a connection, channel and declares a queue when the AMQP_URL is in the environment
integration_test.go:1810
↓ 4 callers
Method
setContent
(properties, []byte)
types.go:280
↓ 4 callers
Function
writeFrame
(w io.Writer, typ uint8, channel uint16, payload []byte)
write.go:210
↓ 3 callers
Method
Cancel
* Cancel stops deliveries to the consumer chan established in Channel.Consume and identified by consumer. Only use this method to cleanly stop receiv
channel.go:677
↓ 3 callers
Method
Close
Close tears the connection down, taking the channel with it.
_examples/pubsub/pubsub.go:38
↓ 3 callers
Function
DialTLS
DialTLS accepts a string in the AMQP URI format and returns a new Connection over TCP using PlainAuth. Defaults to a server heartbeat interval of 10
connection.go:152
↓ 3 callers
Method
NotifyCancel
* NotifyCancel registers a listener for basic.cancel methods. These can be sent from the server when a queue is deleted or when consuming from a mirr
channel.go:536
↓ 3 callers
Method
NotifyReturn
* NotifyReturn registers a listener for basic.return methods. These can be sent from the server when a publish is undeliverable either from the manda
channel.go:515
↓ 3 callers
Method
QueueDeclarePassive
* QueueDeclarePassive is functionally and parametrically equivalent to QueueDeclare, except that it sets the "passive" attribute to true. A passive q
channel.go:791
↓ 3 callers
Method
Reject
(tag uint64, requeue bool)
delivery.go:22
↓ 3 callers
Method
confirm
confirm confirms one publishing, increments the expecting delivery tag, and removes bookkeeping for that delivery tag.
confirms.go:41
↓ 3 callers
Method
connectionStart
()
client_test.go:157
↓ 3 callers
Method
id
()
types.go:271
↓ 3 callers
Function
pick
(client, server int)
connection.go:847
↓ 3 callers
Method
release
release frees the use of the number for another allocation
allocator.go:104
↓ 3 callers
Function
shouldNotPanic
(t *testing.T)
delivery_test.go:5
↓ 2 callers
Method
Close
* Close requests and waits for the response to close the AMQP connection. It's advisable to use this message when publishing to ensure all kernel buf
connection.go:322
↓ 2 callers
Method
ExchangeDeclarePassive
* ExchangeDeclarePassive is functionally and parametrically equivalent to ExchangeDeclare, except that it sets the "passive" attribute to true. A pas
channel.go:1169
↓ 2 callers
Method
FieldType
(field Field)
spec/gen.go:450
↓ 2 callers
Method
Flow
* Flow pauses the delivery of messages to consumers on this channel. Channels are opened with flow control active, to open a channel with paused deli
channel.go:1474
↓ 2 callers
Method
Len
()
types.go:260
↓ 2 callers
Method
Mechanism
()
auth.go:15
↓ 2 callers
Method
Tx
* Tx puts the channel into transaction mode on the server. All publishings and acknowledgments following this method will be atomically committed or
channel.go:1416
↓ 2 callers
Method
closeChannel
closeChannel releases and initiates a shutdown of the channel. All channel closures should be initiated here for proper channel lifecycle management
connection.go:646
↓ 2 callers
Method
closeWith
(err *Error)
connection.go:337
↓ 2 callers
Function
commandNameBasedUniqueConsumerTag
(commandName string)
consumers.go:23
↓ 2 callers
Method
connectionTune
()
client_test.go:168
↓ 2 callers
Function
export
(delim *regexp.Regexp, parts ...string)
spec/gen.go:502
↓ 2 callers
Function
integrationRabbitMQ
Delegates to integrationConnection and only returns a connection if the product is RabbitMQ
integration_test.go:1823
↓ 2 callers
Function
min
(a, b int)
connection.go:840
↓ 2 callers
Function
newChannel
Constructs a new channel with the given framing rules
channel.go:78
↓ 2 callers
Function
newDelivery
(channel *Channel, msg messageWithContent)
delivery.go:61
↓ 2 callers
Function
newError
(code uint16, text string)
types.go:73
↓ 2 callers
Function
newServer
(t *testing.T, serverIO, clientIO io.ReadWriteCloser)
client_test.go:36
↓ 2 callers
Method
open
Connection = open-Connection *use-Connection close-Connection open-Connection = C:protocol-header S:START C:START-OK *challenge S:TUNE C:
connection.go:703
↓ 2 callers
Function
public
(parts ...string)
spec/gen.go:498
↓ 2 callers
Function
readField
* '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
read.go:172
next →
1–100 of 616, ranked by callers