Sean Chittenden
86393514b8
Gratuitous s/hostname/host/i rename
...
Tired of inconsistencies between hostname and host. There is a difference, but until the code shakes out, I'm simplifying things for now.
2015-12-22 21:49:58 -08:00
Sean Chittenden
48010ff507
Add consul_agent_ping()
...
Hits /v1/agent/self as an end point. Doesn't perform any content verification beyond checking the estatus code atm, but will in the future.
2015-12-22 21:41:52 -08:00
Sean Chittenden
76226a46df
INT2 doesn't fit high port numbers
...
Bump the return value of consul_status_peers()'s port column from an INT2 to an INT4. If SQL had UINT2, this would be a non-issue.
2015-12-01 00:33:22 -08:00
Sean Chittenden
c268e938ee
Add PostgreSQL function consul_kv_get()
...
Add a set returning function that fetches a particular key. It can be called like:
SELECT * FROM consul_kv_get('foo-key');
SELECT * FROM consul_kv_get(key := 'test/', recurse := TRUE);
2015-11-30 14:40:20 -08:00
Sean Chittenden
b65f63cbc0
Improve PG's planner hints for status functions
2015-11-17 02:30:49 -08:00
Sean Chittenden
9b3f83b618
Match consul's API convention more strongly
...
Rename consul_leader() and consul_peers() to consul_status_leader() and consul_status_peers(), respectively.
2015-11-14 21:54:26 -08:00
Sean Chittenden
f88f773ddb
Checkpoint work and import into github so legal can advise re: copyrights.
2015-11-14 12:27:20 -08:00