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

Combine options that are singular entities

      There are currently a number of options that are set in the same way they are set on the connection string. These options are for write concern, read concern, read preference, authentication, and SSL. There is no need to override these types in a non-wholesale manner, e.g. taking the tags from the connection string and the mode from a client options and combining them, and doing so could cause bugs, e.g. taking the tags from a connection string and combining it with a read preference mode of primary.

      Update the client options for read concern, write concern, read preference, authentication, and SSL to take entire types instead of having a method for each one. The options for read concern, write concern, and read preference should take a *readconcern.ReadConcern, *writeconcern.WriteConcern, and *readpref.ReadPref, respectively. For authentication, a new type is required that combines the individual authentication credential options. For SSL, a new type is required that combines the individual SSL options.

            Assignee:
            roland.fong Roland Fong
            Reporter:
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: