]> Sergey Matveev's repositories - btrtrc.git/commit
Rework storage interfaces to make them simpler to implement
authorMatt Joiner <anacrolix@gmail.com>
Fri, 2 Sep 2016 05:10:57 +0000 (15:10 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Fri, 2 Sep 2016 05:10:57 +0000 (15:10 +1000)
commit1e919dd6b1bacd14b997a71992886e9c46f0b2b9
tree35218d26419a2bae6f27bddb3060142c58e2177e
parentdb3be3441f72025e4db40eef70f6ee3121517d60
Rework storage interfaces to make them simpler to implement

This allows lots of behaviour to be baked into the new Client, Torrent and Piece wrappers, rather than duplicating (badly) them in all the backend implementations.
15 files changed:
client.go
client_test.go
config.go
issue97_test.go
storage/boltdb.go
storage/file.go
storage/file_storage_piece.go
storage/interface.go
storage/issue95_test.go
storage/issue96_test.go
storage/mmap.go
storage/piece_file.go
storage/piece_resource.go
storage/wrappers.go [new file with mode: 0644]
torrent.go