zllovesuki / specter

like ngrok, but more ambitious with DHT for flavor
MIT License
26 stars 1 forks source link

spec/chord_kv: make kv support future complex operations #9

Closed zllovesuki closed 2 years ago

zllovesuki commented 2 years ago

Previous implementation uses simple []byte for backing storage, however that limits the kind of KV operations that can be supported.

PR changes the exported functions of KV to be *protocol.KVTransfer to allow more complex operation, such as Append() and Prefix() under a single key for tracking multiple keys (needed to support VFS-like interface from certmagic).