ipld-eth-server/vendor/github.com/ipfs/go-ipfs/plugin/plugin.go
2019-12-02 13:24:51 -06:00

13 lines
363 B
Go

package plugin
// Plugin is base interface for all kinds of go-ipfs plugins
// It will be included in interfaces of different Plugins
type Plugin interface {
// Name should return unique name of the plugin
Name() string
// Version returns current version of the plugin
Version() string
// Init is called once when the Plugin is being loaded
Init() error
}