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

Convert Session Interface to a Struct

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 2.0.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Major Change
    • Needed
    • Hide

      1. What would you like to communicate to the user about this feature?

      NA. Although mongo.Session is in the stable API, it was sealed and not available for external use. However, we should communicate that the Session returned by client.StartSession() is now a struct. We should also update any documentation that depended on the return value being an interface.

      2. Would you like the user to see examples of the syntax and/or executable code and its output?

      NA.

      3. Which versions of the driver/connector does this apply to?

      2.0

      Show
      1. What would you like to communicate to the user about this feature? NA. Although mongo.Session is in the stable API, it was sealed and not available for external use. However, we should communicate that the Session returned by client.StartSession() is now a struct. We should also update any documentation that depended on the return value being an interface. 2. Would you like the user to see examples of the syntax and/or executable code and its output? NA. 3. Which versions of the driver/connector does this apply to? 2.0

      Currently there is only one implementation of the Session interface in the Go Driver, the sessionImpl struct. This is confusing to users since we export the Session interface but seal it from external use. Following best practices, we should investigating converting the session interface to a struct.

            Assignee:
            preston.vasquez@mongodb.com Preston Vasquez
            Reporter:
            preston.vasquez@mongodb.com Preston Vasquez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: