mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-22 02:47:48 +08:00
alternative to #5243 that updates go-cid and all packages that depend on it License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
17 lines
402 B
Go
17 lines
402 B
Go
package plugin
|
|
|
|
import (
|
|
"github.com/ipfs/go-ipfs/core/coredag"
|
|
|
|
ipld "gx/ipfs/QmZtNq8dArGfnpCZfx2pUNY7UcjGhVp5qqwQ4hH6mpTMRQ/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
|
|
}
|