Commit b17bc2d5 authored by Brian Tiger Chow's avatar Brian Tiger Chow

feat(net:service) add sender interface

parent ab460ed8
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)
}
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