rqlite / gorqlite

A Go client for rqlite, the distributed database built on SQLite
MIT License
138 stars 34 forks source link

Wrapper for the rqlite status API? #42

Open rgl opened 2 weeks ago

rgl commented 2 weeks ago

I would like to include the rqlite version in my application logs, but I didn't find a wrapper for the rqlite status API. Can that be added, or should we do that ourselves (as-in the rqlite cli)?

otoolep commented 2 weeks ago

Yeah, I do not believe it's exposed via the client library. It's easy to add it, PRs very welcome.

otoolep commented 2 weeks ago

You can also access the version of rqlite via any HTTP request, as it's added as the HTTP header X-RQLITE-VERSION in all responses by rqlited.