Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-372

Add a Ping method to the Client type

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.0.14
    • Affects Version/s: None
    • Component/s: CRUD

      The Connect method of the Client type does not currently block since it just starts goroutines. There is a desire from users to be able to ensure that the Client has actually established a connection to a topology before using the Client in an application. The database/sql package's DB type has this exact method, so there is precedent for such a method. Add a Ping method to the Client type that selects a server and calls the ping command on it.

            Assignee:
            mathew.robinson@mongodb.com Mathew Robinson (Inactive)
            Reporter:
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: