mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-22 02:47:48 +08:00
17 lines
402 B
Go
17 lines
402 B
Go
package plugin
|
|
|
|
import (
|
|
"github.com/ipfs/go-ipfs/core/coredag"
|
|
|
|
node "gx/ipfs/QmPN7cwmpcc4DWXb4KTB9dNAJgjuPY69h3npsMfhRrQL9c/go-ipld-format"
|
|
)
|
|
|
|
// PluginIPLD is an interface that can be implemented to add handlers for
|
|
// for different IPLD formats
|
|
type PluginIPLD interface {
|
|
Plugin
|
|
|
|
RegisterBlockDecoders(dec node.BlockDecoder) error
|
|
RegisterInputEncParsers(iec coredag.InputEncParsers) error
|
|
}
|