1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-09 18:28:45 +08:00

docs/coreapi: Add some documentation to CoreAPI

License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
This commit is contained in:
Łukasz Magiera
2017-12-15 01:34:49 +01:00
parent f3f0179c75
commit eb537a7c8b
2 changed files with 18 additions and 0 deletions

View File

@ -15,6 +15,7 @@ type CoreAPI struct {
node *core.IpfsNode
}
// NewCoreAPI creates new instance of IPFS CoreAPI backed by go-ipfs Node
func NewCoreAPI(n *core.IpfsNode) coreiface.CoreAPI {
api := &CoreAPI{n}
return api