mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-29 01:12:24 +08:00
feat(net:service) add sender interface
This commit is contained in:
11
net/service/interface.go
Normal file
11
net/service/interface.go
Normal file
@ -0,0 +1,11 @@
|
||||
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)
|
||||
}
|
Reference in New Issue
Block a user