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:
@ -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
|
||||
|
Reference in New Issue
Block a user