Grant Limberg
1bf6dfec8f
use default c++ stdlib. use -fPIC
2018-05-07 15:57:04 -07:00
Grant Limberg
aa1d79aa19
no message
2018-05-07 15:53:21 -07:00
Grant Limberg
24de09db75
no message
2018-05-07 15:51:44 -07:00
Grant Limberg
8cd9fa4a00
fix for clang 4.0.1
2018-05-07 15:49:58 -07:00
Sean Chittenden
37a6c84ec2
Teach consul-status to query the agent's self status
...
New mode dumps everything in a sysctl(1)-like output. Mapping between consul's json key/value to a *nix-like output requires the maps.
2015-12-24 10:13:42 -08:00
Sean Chittenden
7bd6a85150
Add the timeout option to the cpr agent
...
I'm not sure this is working as intended atm, likely a bug in CPR, but for the time being, keep doing the right thing and *hope*... (*facedesk*).
2015-12-22 22:17:46 -08:00
Sean Chittenden
8c464c092a
json11's to_json() wants a std::map<string,string>
...
Don't paper over the requested types in their API.
2015-12-22 22:07:20 -08:00
Sean Chittenden
7ece12df11
Commit miss: Add agent::selfUrl()
...
This was needed back when consul_agent_ping() was added. I missed this earlier because it's intermixed with the catalog nodes work. Damn.
2015-12-22 22:06:36 -08:00
Sean Chittenden
542688597a
Remove unnecessary include to iostream
2015-12-22 22:05:05 -08:00
Sean Chittenden
284a7d9abb
kvUrl() returns a const string
2015-12-22 22:04:23 -08:00
Sean Chittenden
67457b8be9
Whitespace style police
2015-12-22 22:03:03 -08:00
Sean Chittenden
68c2e5d863
Re-introduce consul_agent_port show hook
2015-12-22 22:02:06 -08:00
Sean Chittenden
dda67c984c
Sync w/ pg_consul.sql
2015-12-22 22:01:22 -08:00
Sean Chittenden
8136f277db
Use C++-style casting instead of C-style casting
2015-12-22 22:01:10 -08:00
Sean Chittenden
eba22bc66a
Should have never used GUC_LIST_INPUT
...
However GUC_NOT_WHILE_SEC_REST is semi-legit.
2015-12-22 21:59:51 -08:00
Sean Chittenden
06e5c48394
Use agent defaults && constants in consul::Agent
...
Type safety in C++14 still has too many implicit exceptions.
2015-12-22 21:57:32 -08:00
Sean Chittenden
c156d4536f
Cleanup consul::Peer
...
Most of this moved to consul::Agent. Only want one definition for these contstants. Also reduce the number of ctors for Peer, unnecessary for now.
2015-12-22 21:51:08 -08:00
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
3f2f77d3fe
Fix up regression test output
...
This had drifted. In the previous commit I inserted the ping check at number 100. Hindsight: should have added that as 140 and renamed it in a followup commit.
2015-12-22 21:43:23 -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
296f147059
Add a timeout (ms) parameter
...
Not quite ready to bite off importing units for dimmensional analysis, but add a parameter for getting and setting the timeout. This parameter has no effect (next few commits once a static agent per backend is initialized).
2015-12-22 20:41:25 -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
ef579c2e2b
Style and code cleanliness fixes.
2015-11-30 14:40:52 -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
61b343ba72
Document help command output
...
Splat out the output from -h and dork them into some .md files.
2015-11-19 14:35:21 -08:00