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

Add package comments to packages that are missing them #1185

Merged
merged 8 commits into from
May 2, 2015

Conversation

wking
Copy link
Contributor

@wking wking commented May 2, 2015

I've been chipping away at this over the past two days while I survey
the repository. Currently stumping me for a description is
core/corerouting, so I'd welcome some ideas for a brief description
there. Otherwise, I'm trying to describe these packages based on a
quick skim, so feedback/clarification/fixes/etc. are welcome :).

I still have a few more packages to document, but I thought I'd push
this PR now to start getting feedback on the earlier docs while I work
through the remaining packages.

wking added 8 commits April 30, 2015 21:25
I'm not quite sure which file in this package is the most prominent,
but command.go seemed like a reasonable choice.
So folks looking in core can figure out how it fits into the
repository as a whole.
I'm not entirely clear on the role that this package is filling, but
this description seems like a reasonable guess based on a quick skim
through it's exported API.
Currently garbage collection is triggered manually and there are no
age-restrictions on the removal.  I expect we'll eventually follow Git
and auto-launch garbage collection when we hit some threshold of disk
consumption (gc.auto).  I expect we'll also follow Git and keep
unpinned or unreachable objects (gc.pruneexpire, etc.).  But we don't
seem to do either of those yet.
@jbenet jbenet added backlog and removed backlog labels May 2, 2015
@whyrusleeping
Copy link
Member

👏 fighting the good fight!

shell/...:
The high-level API that gives consumers easy access to common
operations (e.g. create a file node from a reader without wrapping
with metadata). We work really hard to keep this stable.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 👏

Maybe also include:

/*
routing/...:
  Routing system interface and implementations.
  For example, the IPFS DHT lives here.

exchange/...:
  Exchange system interface and implementations
  For example, Bitswap lives here.
*/

@jbenet
Copy link
Member

jbenet commented May 2, 2015

👍 LGTM

jbenet added a commit that referenced this pull request May 2, 2015
Add package comments to packages that are missing them
@jbenet jbenet merged commit fc87f01 into ipfs:master May 2, 2015
@jbenet jbenet added ready and removed ready labels May 2, 2015
@wking
Copy link
Contributor Author

wking commented May 2, 2015

On Sat, May 02, 2015 at 12:22:18PM -0700, Juan Batiz-Benet wrote:

Merged #1185.

I guess I'll submit the next round of godocs as a follow-up PR ;).

@jbenet
Copy link
Member

jbenet commented May 2, 2015

Yeah, keeps the ball rolling. always nice to merge things :) 👍

wking added a commit to wking/go-ipfs that referenced this pull request May 4, 2015
On Sat, May 02, 2015 at 12:21:30PM -0700, Juan Batiz-Benet wrote [1]:
> Maybe also include:
>
> ```go
> routing/...:
>   Routing system interface and implementations.
>   For example, the IPFS DHT lives here.
>
> exchange/...:
>   Exchange system interface and implementations
>   For example, Bitswap lives here.
> ```

[1]: ipfs#1185 (comment)
wking added a commit to wking/go-ipfs that referenced this pull request May 4, 2015
On Sat, May 02, 2015 at 12:21:30PM -0700, Juan Batiz-Benet wrote [1]:
> Maybe also include:
>
> ```go
> routing/...:
>   Routing system interface and implementations.
>   For example, the IPFS DHT lives here.
>
> exchange/...:
>   Exchange system interface and implementations
>   For example, Bitswap lives here.
> ```

[1]: ipfs#1185 (comment)
@wking wking removed the ready label May 4, 2015
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.

None yet

3 participants