Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactored description types to a desc package for reusability. #9

Closed
wants to merge 1 commit into from

Conversation

craiggwilson
Copy link
Collaborator

This moves the *Desc types as well as Endpoint to the desc package. This will let certain other packages, like readpref, define their work without needing to reference the core package at all (only the desc package). This will enable decoupled testing as well as portability.

After having read a lot today about packages, it seems that more smaller, cohesive packages are the preferred way of doing things. Larger packages should probably be broken up. For instance, I'm thinking about moving the clusterMonitorFSM into the desc package, or maybe it's own package. At some point, we'll have gotten a lot of the "stuff" out of the core package and perhaps it can be renamed to something more descriptive of what it is about (mostly connection management).

@jyemin
Copy link
Contributor

jyemin commented Feb 10, 2017

We'll probably need to visit this structure again, but this seems a step forward.

LGTM

@jyemin jyemin closed this Feb 10, 2017
@craiggwilson craiggwilson deleted the desc branch February 10, 2017 23:20
prestonvasquez pushed a commit to prestonvasquez/mongo-go-driver that referenced this pull request Apr 29, 2024
prestonvasquez pushed a commit to prestonvasquez/mongo-go-driver that referenced this pull request Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants