etcd-io/etcd ? reverse-engineered prompt
Reverse engineered prompt
Build me a reliable distributed key value store in Go that I can run locally or as a small cluster.
It should let me store and read simple keys and values from a command line client, and it should keep working even if one node goes down. I want a clean gRPC API, support for secure connections with TLS, and a setup that can run as a single node or a three node cluster for testing. Please include a basic command line tool to put and get values, plus a simple config file and examples for starting the server.
Make sure the data is replicated safely using a leader based consensus approach, and include a few tests so I can verify the cluster behavior and basic reliability. If you need current implementation details, look up the latest docs online.
Are you gonna build this?
make sure you review the code using coderabbit