-
-
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.
plugin: add plugin type for daemon plugins
This allows users to run multiple go-ipfs "clients" in-process. License: MIT Signed-off-by: Steven Allen <[email protected]>
- Loading branch information
Showing
3 changed files
with
74 additions
and
3 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 ( | ||
coreiface "github.com/ipfs/go-ipfs/core/coreapi/interface" | ||
) | ||
|
||
// PluginDaemon is an interface for daemon plugins. These plugins will be run on | ||
// the daemon and will be given access to an implementation of the CoreAPI. | ||
type PluginDaemon interface { | ||
Plugin | ||
|
||
Start(coreiface.CoreAPI) error | ||
Close() 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