-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Feat/doc interfaces #4599
Feat/doc interfaces #4599
Conversation
License: MIT Signed-off-by: Jeromy <[email protected]>
blocks/blockstore/blockstore.go
Outdated
@@ -40,12 +40,19 @@ type Blockstore interface { | |||
DeleteBlock(*cid.Cid) error | |||
Has(*cid.Cid) (bool, error) | |||
Get(*cid.Cid) (blocks.Block, error) | |||
|
|||
// AddBlock puts a given block to the underlying datastore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Definitely wrong method name here :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mmmm, copy paste has not served me well
License: MIT Signed-off-by: Jeromy <[email protected]>
f97e8db
to
e0e856a
Compare
@karalabe Any other bits that feel neglected? |
License: MIT Signed-off-by: Jeromy <[email protected]>
License: MIT Signed-off-by: ForrestWeston <[email protected]>
core/core.go
Outdated
@@ -670,6 +676,7 @@ func (n *IpfsNode) loadID() error { | |||
return nil | |||
} | |||
|
|||
// GetKey will return the IpfsNode key with name `name`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe private key or keystore key instead of IpfsNode key
core/coreapi/coreapi.go
Outdated
func NewCoreAPI(n *core.IpfsNode) coreiface.CoreAPI { | ||
api := &CoreAPI{n} | ||
return api | ||
} | ||
|
||
// Unixfs returns the Unixfs API. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about interface
? - If we like that, i'll put it on the others below
core/coreapi/interface/interface.go
Outdated
String() string | ||
// Cid returns path cid |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
returns the cid that the path refers to. (as opposed to the root)
core/coreapi/interface/interface.go
Outdated
Root() *cid.Cid | ||
// Resolved returns whether cid is nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
core/coreapi/interface/interface.go
Outdated
Name() string | ||
//Path returns key path |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
space before Path
core/coreapi/name.go
Outdated
func (e *ipnsEntry) Name() string { | ||
return e.name | ||
} | ||
|
||
// Value returns the inpnEntry value. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo
@magik6k wanna give this another look over? |
8186aed
to
af210f6
Compare
License: MIT Signed-off-by: ForrestWeston <[email protected]>
License: MIT Signed-off-by: ForrestWeston <[email protected]>
License: MIT Signed-off-by: ForrestWeston <[email protected]>
License: MIT Signed-off-by: ForrestWeston <[email protected]>
License: MIT Signed-off-by: ForrestWeston <[email protected]>
License: MIT Signed-off-by: ForrestWeston <[email protected]>
License: MIT Signed-off-by: ForrestWeston <[email protected]>
License: MIT Signed-off-by: ForrestWeston <[email protected]>
License: MIT Signed-off-by: ForrestWeston <[email protected]>
License: MIT Signed-off-by: ForrestWeston <[email protected]>
License: MIT Signed-off-by: ForrestWeston <[email protected]>
af210f6
to
83ccc7e
Compare
Document interfaces