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
8 files changed
tree: 109eb115949a03a93b7cabe8a3d9e28ab622e148
  1. cmd/
  2. examples/
  3. internal/
  4. lib/
  5. runtime/
  6. services/
  7. test/
  8. .gitignore
  9. AUTHORS
  10. CONTRIBUTING.md
  11. CONTRIBUTORS
  12. envvar.go
  13. envvar_test.go
  14. LICENSE
  15. PATENTS
  16. README.md
  17. VERSION
README.md

Vanadium

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.