Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
add70f79
Unverified
Commit
add70f79
authored
Jun 13, 2018
by
Whyrusleeping
Committed by
GitHub
Jun 13, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5108 from Mr0grog/docs/add-coreapi-overview
Add package overview comments to coreapi
parents
9f9ddd56
319f0063
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
core/coreapi/coreapi.go
core/coreapi/coreapi.go
+14
-1
No files found.
core/coreapi/coreapi.go
View file @
add70f79
/*
Package coreapi provides direct access to the core commands in IPFS. If you are
embedding IPFS directly in your Go program, this package is the public
interface you should use to read and write files or otherwise control IPFS.
If you are running IPFS as a separate process, you should use `go-ipfs-api` to
work with it via HTTP. As we finalize the interfaces here, `go-ipfs-api` will
transparently adopt them so you can use the same code with either package.
**NOTE: this package is experimental.** `go-ipfs` has mainly been developed
as a standalone application and library-style use of this package is still new.
Interfaces here aren't yet completely stable.
*/
package
coreapi
import
(
...
...
@@ -49,7 +62,7 @@ func (api *CoreAPI) Key() coreiface.KeyAPI {
return
(
*
KeyAPI
)(
api
)
}
//Object returns the ObjectAPI interface implementation backed by the go-ipfs node
//
Object returns the ObjectAPI interface implementation backed by the go-ipfs node
func
(
api
*
CoreAPI
)
Object
()
coreiface
.
ObjectAPI
{
return
(
*
ObjectAPI
)(
api
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment