1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-08-06 11:31:54 +08:00

plugins: introduce PluginDaemonInternal to directly interact with IpfsNode

This commit is contained in:
Michael Muré
2019-11-22 13:18:44 +01:00
parent b8ec598d58
commit 2a9e5005da
3 changed files with 31 additions and 8 deletions

14
plugin/daemoninternal.go Normal file
View File

@ -0,0 +1,14 @@
package plugin
import "github.com/ipfs/go-ipfs/core"
// PluginDaemonInternal is an interface for daemon plugins. These plugins will be run on
// the daemon and will be given a direct access to the IpfsNode.
//
// Note: PluginDaemonInternal is considered internal and no guarantee is made concerning
// the stability of its API. If you can, use PluginAPI instead.
type PluginDaemonInternal interface {
Plugin
Start(*core.IpfsNode) error
}