daemon.go 333 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 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
}