[GODRIVER-2899] Server selector constructors should not return interfaces Created: 11/Jul/23 Updated: 08/Jan/24 |
|
| Status: | Backlog |
| Project: | Go Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Unknown |
| Reporter: | Preston Vasquez | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Epic Link: | Go Driver 2.0: Driver | ||||||||||||||||
| Documentation Changes Summary: | 1. What would you like to communicate to the user about this feature? |
||||||||||||||||
| Description |
|
The server selectors in the Go Drive return the "ServerSelector" interface:
They should each be updated to return a struct that consumes a ServerSelectionFunc and any other information that is required to perform a server selection. Rationale: Preempting the interface is not really necessary in any of these cases and makes the code fairly confusing. |