Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
cfad4608
Unverified
Commit
cfad4608
authored
Jul 12, 2017
by
Jakub Sztandera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git: make gitPlugin struct private
License: MIT Signed-off-by:
Jakub Sztandera
<
kubuxu@protonmail.ch
>
parent
04b26fe0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
plugin/plugins/git/git.go
plugin/plugins/git/git.go
+8
-8
No files found.
plugin/plugins/git/git.go
View file @
cfad4608
...
...
@@ -13,31 +13,31 @@ import (
)
var
Plugins
=
[]
plugin
.
Plugin
{
&
G
itPlugin
{},
&
g
itPlugin
{},
}
type
G
itPlugin
struct
{}
type
g
itPlugin
struct
{}
var
_
plugin
.
PluginIPLD
=
(
*
G
itPlugin
)(
nil
)
var
_
plugin
.
PluginIPLD
=
(
*
g
itPlugin
)(
nil
)
func
(
*
G
itPlugin
)
Name
()
string
{
func
(
*
g
itPlugin
)
Name
()
string
{
return
"ipld-git"
}
func
(
*
G
itPlugin
)
Version
()
string
{
func
(
*
g
itPlugin
)
Version
()
string
{
return
"0.0.1"
}
func
(
*
G
itPlugin
)
Init
()
error
{
func
(
*
g
itPlugin
)
Init
()
error
{
return
nil
}
func
(
*
G
itPlugin
)
RegisterBlockDecoders
(
dec
format
.
BlockDecoder
)
error
{
func
(
*
g
itPlugin
)
RegisterBlockDecoders
(
dec
format
.
BlockDecoder
)
error
{
dec
.
Register
(
cid
.
GitRaw
,
git
.
DecodeBlock
)
return
nil
}
func
(
*
G
itPlugin
)
RegisterInputEncParsers
(
iec
coredag
.
InputEncParsers
)
error
{
func
(
*
g
itPlugin
)
RegisterInputEncParsers
(
iec
coredag
.
InputEncParsers
)
error
{
iec
.
AddParser
(
"raw"
,
"git"
,
parseRawGit
)
iec
.
AddParser
(
"zlib"
,
"git"
,
parseZlibGit
)
return
nil
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment