git: make gitPlugin struct private

License: MIT
Signed-off-by: default avatarJakub Sztandera <kubuxu@protonmail.ch>
parent 04b26fe0
......@@ -13,31 +13,31 @@ import (
)
var Plugins = []plugin.Plugin{
&GitPlugin{},
&gitPlugin{},
}
type GitPlugin struct{}
type gitPlugin struct{}
var _ plugin.PluginIPLD = (*GitPlugin)(nil)
var _ plugin.PluginIPLD = (*gitPlugin)(nil)
func (*GitPlugin) Name() string {
func (*gitPlugin) Name() string {
return "ipld-git"
}
func (*GitPlugin) Version() string {
func (*gitPlugin) Version() string {
return "0.0.1"
}
func (*GitPlugin) Init() error {
func (*gitPlugin) Init() error {
return nil
}
func (*GitPlugin) RegisterBlockDecoders(dec format.BlockDecoder) error {
func (*gitPlugin) RegisterBlockDecoders(dec format.BlockDecoder) error {
dec.Register(cid.GitRaw, git.DecodeBlock)
return nil
}
func (*GitPlugin) RegisterInputEncParsers(iec coredag.InputEncParsers) error {
func (*gitPlugin) RegisterInputEncParsers(iec coredag.InputEncParsers) error {
iec.AddParser("raw", "git", parseRawGit)
iec.AddParser("zlib", "git", parseZlibGit)
return nil
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment