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-unixfs
Commits
488515c2
Commit
488515c2
authored
Oct 22, 2014
by
Brian Tiger Chow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor(namesys) move proto to internal pb package
parent
a8175316
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
2 deletions
+4
-2
namesys/internal/pb/entry.pb.go
namesys/internal/pb/entry.pb.go
+0
-0
namesys/internal/pb/entry.proto
namesys/internal/pb/entry.proto
+0
-0
namesys/publisher.go
namesys/publisher.go
+2
-1
namesys/routing.go
namesys/routing.go
+2
-1
No files found.
namesys/entry.pb.go
→
namesys/
internal/pb/
entry.pb.go
View file @
488515c2
File moved
namesys/entry.proto
→
namesys/
internal/pb/
entry.proto
View file @
488515c2
File moved
namesys/publisher.go
View file @
488515c2
...
...
@@ -9,6 +9,7 @@ import (
mh
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multihash"
ci
"github.com/jbenet/go-ipfs/crypto"
pb
"github.com/jbenet/go-ipfs/namesys/internal/pb"
routing
"github.com/jbenet/go-ipfs/routing"
u
"github.com/jbenet/go-ipfs/util"
)
...
...
@@ -67,7 +68,7 @@ func (p *ipnsPublisher) Publish(k ci.PrivKey, value string) error {
}
func
createRoutingEntryData
(
pk
ci
.
PrivKey
,
val
string
)
([]
byte
,
error
)
{
entry
:=
new
(
IpnsEntry
)
entry
:=
new
(
pb
.
IpnsEntry
)
sig
,
err
:=
pk
.
Sign
([]
byte
(
val
))
if
err
!=
nil
{
return
nil
,
err
...
...
namesys/routing.go
View file @
488515c2
...
...
@@ -8,6 +8,7 @@ import (
mh
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multihash"
ci
"github.com/jbenet/go-ipfs/crypto"
pb
"github.com/jbenet/go-ipfs/namesys/internal/pb"
routing
"github.com/jbenet/go-ipfs/routing"
u
"github.com/jbenet/go-ipfs/util"
)
...
...
@@ -54,7 +55,7 @@ func (r *routingResolver) Resolve(name string) (string, error) {
return
""
,
err
}
entry
:=
new
(
IpnsEntry
)
entry
:=
new
(
pb
.
IpnsEntry
)
err
=
proto
.
Unmarshal
(
val
,
entry
)
if
err
!=
nil
{
return
""
,
err
...
...
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