The master persists node data to Consul right now. To make developing and testing a bit easier, we should define an in-memory repository instead and be able to swap it out with Consul.
Define an abstract, common interface that is responsible for all the operations on node data (create, authenticate)
Write a Consul implementation for that interface.
Write an in-memory implementation for that interface.
The master persists node data to Consul right now. To make developing and testing a bit easier, we should define an in-memory repository instead and be able to swap it out with Consul.