Brad Fitzpatrick
bf83a52bef
blob: add ParseKnown
...
Change-Id: I96e031951d1f490a700faabf5aeb864f8c0b9bc3
2014-04-11 15:50:31 -07:00
Bill Thiede
9aeb0aa2c7
pkg/client: Search fix zero-value Describe queries.
...
Adds support for zero value blob.Ref {Unm,M}arshalJSON.
Fix for:
https://camlistore.org/issue/308
Change-Id: I910fc4f05015b0c3ddc57eba9d1d8fe1bfe992bf
2014-01-04 08:11:23 -08:00
Brad Fitzpatrick
f1a13214af
blob: implement the parser's buffer pool TODO
...
Change-Id: I24366c5f42fd18103df68676047c7e4cdf6b7af6
2013-12-06 10:19:20 +04:00
Brad Fitzpatrick
6c1df9d633
blob: add ParseBytes
...
Will be used by index->corpus slurping of blob meta rows on
start-up, to reduce garbage.
Change-Id: Ied6605bd44ae38537d3661579c7a8b6dea2b2d9e
2013-12-04 14:38:13 +01:00
Brad Fitzpatrick
ec4af83d19
pkg/blob: implement Go 1.2's encoding.BinaryMarshaler
...
Change-Id: Ic9fbbd4cdd99fbf19ed2467f9fc151c688ec048f
2013-08-23 13:30:18 -05:00
Brad Fitzpatrick
41fe3660c2
blob: add == test
...
Change-Id: If3a8096e885d51316e3841d9a6bde625ee76f51e
2013-08-03 22:25:39 -07:00
Brad Fitzpatrick
0bdf20884b
all: delete pkg/blobref; convert all from *blobref.BlobRef to new blob.Ref
...
Change-Id: Id2dfb7f19452bedf4f3c9310b36227fd8117b225
2013-08-03 19:54:30 -07:00
Brad Fitzpatrick
c44d89e22f
blob: more porting blobref to new pkg blob
...
Change-Id: Id7f0dd80dd6ce5fa55a2c04e2e2a882a5ef8add6
2013-08-03 19:08:17 -07:00
Brad Fitzpatrick
e56a944843
blob: replacement for *blobref.BlobRef type.
...
Shorter name (blob.Ref instead of *blobref.BlobRef) and value
semantics instead of pointer.
Also, equality (==) works on it, so it can be used as a map key.
It's also more memory efficient, for the upcoming search server that
needs to store tons (or all) of your blobrefs in memory.
Change-Id: I494a2d72d31865211fa388fedf938ed25f99ca13
2013-08-03 13:48:17 -07:00