summaryrefslogtreecommitdiff
path: root/odb_test.go
AgeCommit message (Collapse)Author
2014-05-06Odb: use a callback instead of a channel for ForEachCarlos Martín Nieto
A channel provides no way to specify whether we stopped sending data because of an error or because there is no more data. Therefore, make Odb.ForEach() take a callback with which the user is free to do whatever they need, letting us return en error.
2014-03-19Oid: make NewOid take a stringCarlos Martín Nieto
This is the most common way of having an id that's not in Oid form, so let's make it the "default" and rename to NewOidFromBytes() the one that takes []byte.
2014-01-25Test for Odb hash function.Claudiu-Vlad Ursache
2013-09-22Remove leftover reference to old constCarlos Martín Nieto
2013-09-11Wrap the odb streamsCarlos Martín Nieto
The interface to these streams should be what you expect from Go, and both have Write and Close functions so they implement Reader/ReadCloser and Write/WriteCloser respectively.