mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-30 09:59:13 +08:00
expose handler in inet
This commit is contained in:

committed by
Brian Tiger Chow

parent
b0d0b5fc20
commit
865109f562
@ -3,6 +3,7 @@ package net
|
|||||||
import (
|
import (
|
||||||
msg "github.com/jbenet/go-ipfs/net/message"
|
msg "github.com/jbenet/go-ipfs/net/message"
|
||||||
mux "github.com/jbenet/go-ipfs/net/mux"
|
mux "github.com/jbenet/go-ipfs/net/mux"
|
||||||
|
srv "github.com/jbenet/go-ipfs/net/service"
|
||||||
peer "github.com/jbenet/go-ipfs/peer"
|
peer "github.com/jbenet/go-ipfs/peer"
|
||||||
|
|
||||||
context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.net/context"
|
context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.net/context"
|
||||||
@ -43,3 +44,6 @@ type Sender interface {
|
|||||||
// Set Deadlines or cancellations in the context.Context you pass in.
|
// Set Deadlines or cancellations in the context.Context you pass in.
|
||||||
SendRequest(ctx context.Context, m msg.NetMessage) (msg.NetMessage, error)
|
SendRequest(ctx context.Context, m msg.NetMessage) (msg.NetMessage, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Handler interface for network services.
|
||||||
|
type Handler srv.Handler
|
||||||
|
Reference in New Issue
Block a user