-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6719 from MichaelMure/plugin-node
introduce IpfsNode Plugin
- Loading branch information
Showing
3 changed files
with
31 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters