1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-29 17:36:38 +08:00

expose handler in inet

This commit is contained in:
Juan Batiz-Benet
2014-09-16 00:51:41 -07:00
committed by Brian Tiger Chow
parent b0d0b5fc20
commit 865109f562

View File

@ -3,6 +3,7 @@ package net
import (
msg "github.com/jbenet/go-ipfs/net/message"
mux "github.com/jbenet/go-ipfs/net/mux"
srv "github.com/jbenet/go-ipfs/net/service"
peer "github.com/jbenet/go-ipfs/peer"
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.
SendRequest(ctx context.Context, m msg.NetMessage) (msg.NetMessage, error)
}
// Handler interface for network services.
type Handler srv.Handler