vmware-archive / haret

A strongly consistent distributed coordination system, built using proven protocols & implemented in Rust.
461 stars 18 forks source link

Decouple API and backend from VR code #138

Closed andrewjstone closed 7 years ago

andrewjstone commented 7 years ago

The API specific messages and Backend that uses vertree are logically independent from the VR code. It is possible to change the API messages and backend without having to modify VR code. The API is however coupled to the backend because the backend is what allows implementing the API. Move internal api messages and backend code from vr folder to api folder and clean up the names to remove VR references.

Also perform some general cleanup to make protobuf to internal message types clearer and use standard conversions such as From where applicable.