~rogpeppe/+junk/mgo-tagged-log-messages

« back to all changes in this revision

Viewing changes to session.go

  • Committer: Gustavo Niemeyer
  • Date: 2014-01-25 18:14:51 UTC
  • Revision ID: gustavo@niemeyer.net-20140125181451-85tllyg6tqjlfci6
Tags: r2014.01.25
Removed "experimental" note from DialServer, and obsoleted Dial.

Show diffs side-by-side

added added

removed removed

Lines of Context:
254
254
        Username string
255
255
        Password string
256
256
 
257
 
        // Dial optionally specifies the dial function for establishing
258
 
        // connections with the MongoDB servers.
259
 
        Dial func(addr net.Addr) (net.Conn, error)
260
 
 
261
257
        // DialServer optionally specifies the dial function for establishing
262
258
        // connections with the MongoDB servers.
263
 
        //
264
 
        // WARNING: This interface is experimental and may change.
265
259
        DialServer func(addr *ServerAddr) (net.Conn, error)
 
260
 
 
261
        // WARNING: This field is obsolete. See DialServer above.
 
262
        Dial func(addr net.Addr) (net.Conn, error)
266
263
}
267
264
 
268
265
// ServerAddr represents the address for establishing a connection to an
269
266
// individual MongoDB server.
270
 
//
271
 
// WARNING: This interface is experimental and may change.
272
267
type ServerAddr struct {
273
268
        str string
274
269
        tcp *net.TCPAddr