mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 10:27:46 +08:00
* go-log * sys * go-crypto 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/QmWi2BYBL5gJ3CiAiQchg6rn1A8iBsrWy51EYxvHVjFvLb/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
|
|
}
|