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:
14
plugin/daemoninternal.go
Normal file
14
plugin/daemoninternal.go
Normal 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
|
||||
}
|
Reference in New Issue
Block a user