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

Method connection

client.go:222–229  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

220}
221
222func (c *Client) connection() (*amqp.Connection, error) {
223 conn, _ := c.conn.Load().(*amqp.Connection)
224 if conn == nil {
225 return nil, ErrNoConnection
226 }
227
228 return conn, nil
229}
230
231// NewClient initializes new Client
232func NewClient(opts ...ClientOpt) *Client {

Callers 2

TestClient_connectionFunction · 0.95
channelMethod · 0.95

Calls

no outgoing calls

Tested by 1

TestClient_connectionFunction · 0.76