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
b17bc2d5
Commit
b17bc2d5
authored
Sep 14, 2014
by
Brian Tiger Chow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(net:service) add sender interface
parent
ab460ed8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
net/service/interface.go
net/service/interface.go
+11
-0
No files found.
net/service/interface.go
0 → 100644
View file @
b17bc2d5
package
service
import
(
context
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.net/context"
msg
"github.com/jbenet/go-ipfs/net/message"
)
type
Sender
interface
{
SendMessage
(
ctx
context
.
Context
,
m
msg
.
NetMessage
,
rid
RequestID
)
error
SendRequest
(
ctx
context
.
Context
,
m
msg
.
NetMessage
)
(
msg
.
NetMessage
,
error
)
}
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