oliora / ppconsul

C++ client for Consul (http://consul.io)
Boost Software License 1.0
152 stars 57 forks source link

Add config loading on Self request #55

Closed indev29 closed 3 years ago

indev29 commented 3 years ago

Makes /agent/self return Config object.

Not sure what was up with the "TODO: use boost::ptree" comment, looks like this part is pretty consistent so there's no point to avoid using a struct here.

The Config element contains a subset of the configuration and its format will not change in a backwards incompatible way between releases.

oliora commented 3 years ago

Thank you for the contribution!