MCPcopy Create free account
hub / github.com/google/go-cloud / defaultDialer

Struct defaultDialer

pubsub/rabbitpubsub/rabbit.go:44–48  ·  view source on GitHub ↗

defaultDialer dials a default Rabbit server based on the environment variable "RABBIT_SERVER_URL".

Source from the content-addressed store, hash-verified

42// defaultDialer dials a default Rabbit server based on the environment
43// variable "RABBIT_SERVER_URL".
44type defaultDialer struct {
45 mu sync.Mutex
46 conn *amqp.Connection
47 opener *URLOpener
48}
49
50func (o *defaultDialer) defaultConn(ctx context.Context) (*URLOpener, error) {
51 o.mu.Lock()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected