mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 18:37:45 +08:00
17 lines
402 B
Go
17 lines
402 B
Go
package plugin
|
|
|
|
import (
|
|
"github.com/ipfs/go-ipfs/core/coredag"
|
|
|
|
ipld "gx/ipfs/QmdDXJs4axxefSPgK6Y1QhpJWKuDPnGJiqgq4uncb4rFHL/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 ipld.BlockDecoder) error
|
|
RegisterInputEncParsers(iec coredag.InputEncParsers) error
|
|
}
|