提交 aea2fce9 作者: Matt Bell 提交者: Juan Batiz-Benet

cmd/ipfs2: Added explanation comment to ipfsHandler

上级 4902361f
...@@ -22,6 +22,8 @@ type ipfs interface { ...@@ -22,6 +22,8 @@ type ipfs interface {
NewDagReader(nd *dag.Node) (io.Reader, error) NewDagReader(nd *dag.Node) (io.Reader, error)
} }
// ipfsHandler is a HTTP handler that serves IPFS objects (accessible by default at /ipfs/<path>)
// (it serves requests like GET /ipfs/QmVRzPKPzNtSrEzBFm2UZfxmPAgnaLke4DMcerbsGGSaFe/link)
type ipfsHandler struct { type ipfsHandler struct {
node *core.IpfsNode node *core.IpfsNode
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论