start on netstore

This commit is contained in:
zelig 2015-02-05 13:20:17 +01:00
parent e6e6964e5a
commit 398deb7766

View file

@ -2,9 +2,24 @@ package bzz
/* /*
DHT implements the chunk store that directly communicates with the bzz protocol on the one hand and the kademlia node table on the other. DHT implements the chunk store that directly communicates with the bzz protocol on the one hand and the kademlia node table on the other.
It accumulates requests from peers, keeping a request pool and does forwarding for incoming requests and handles expiry/timeout. It does forwarding for incoming requests and handles expiry/timeout.
*/ */
type peerPool interface {
GetPeers(target Key, peers []peer)
}
// it implements the ChunkStore interface // it implements the ChunkStore interface
type netStore struct { type netStore struct {
peerPool peerPool
// cademlia
}
func (self *DPA) Put(chunk *Chunk) {
return
}
func (self *DPA) Get(key Key) (chunk *Chunk, err error) {
return
} }