commit | 6c301ef8861dc38f1f4f61ab6ed6e30b3eff2985 | [log] [tgz] |
---|---|---|
author | Mike Burrows <m3b@google.com> | Tue May 24 09:43:48 2016 -0700 |
committer | Mike Burrows <m3b@google.com> | Tue May 24 18:16:52 2016 +0000 |
tree | 109eb115949a03a93b7cabe8a3d9e28ab622e148 | |
parent | b1ff40f2c0bc9cbfc8aa9786b28099dd04185c35 [diff] |
v.io/x/ref/services/syncbase: use vom.RawBytes in LogRec struct The LogRec struct in services/syncbase/server/interfaces/sync_types.vdl was still using []byte to transfer client data. This change makes it use "any", which turns into vom.RawBytes, at least in the Go world. blob.go: processBlobRefs() now takes a *vom.RawBytes and uses ToValue(), rather than using vom.Decode() on a []byte. initiator.go: insertSgRecInDb() and insertRecInDb() now both take a *vom.RawBytes. The latter has to use vom.Encode() to turn it into a []byte to put in the database. replay_test.go: createReplayStream() now uses vom.RawBytesFromValue() instead of vom.Encode(). responder.go: makeWireLogRec() now needs vom.Decode() to make a vom.RawBytes from the []byte value it got from the database. responder_test.go: TestSendDataDeltas() was putting strings into the database without encoding. Now it uses vom.Encode() to encode them. watcher.go: processWatchBlobRefs() now uses vom.Decode() to get vom.RawBytes values to give to processBlobRefs(). Change-Id: Iaa97db0dd27a2e45f608ebb7474cc845d86a4ea6
This repository contains a reference implementation of the Vanadium APIs.
Unlike the APIs in https://github.com/vanadium/go.v23, which promises to provide backward compatibility this repository makes no such promises.