Commit Graph

10 Commits (b79d951ced8c5f18fe73d35b2806f3435e40cd64)

Author SHA1 Message Date
Frank Schroeder eddb1af603 Remove duplicate constants
This patch removes duplicate internal copies of constants in the structs
package which are also defined in the api package. The api.KVOp type
with all its values for the TXN endpoint and the api.HealthXXX constants
are now used throughout the codebase.

This resulted in some circular dependencies in the testutil package
which have been resolved by copying code and constants and moving the
WaitForLeader function into a separate testrpc package.
2017-04-20 09:54:49 -07:00
Sean Chittenden e63d3a1275 Update Check API to use constants
Use constants where appropriate to advocate their use.  Also add a deprecation notice re: `updateTTL`.
2016-04-23 16:01:59 -07:00
Ryan Uber 5555e0eb9b api: initial import from armon/consul-api 2015-01-06 10:40:00 -08:00
Armon Dadgar e13ba2f2da watch: Adding support for events 2014-08-28 15:41:06 -07:00
Armon Dadgar ad40ddf361 watch: Remove DSL in place of JSON 2014-08-21 11:38:44 -07:00
Armon Dadgar 5aefdf01a0 watch: support checks watch 2014-08-20 16:32:12 -07:00
Armon Dadgar f3c8873009 watch: supporting service watch 2014-08-20 15:50:32 -07:00
Armon Dadgar 8d70128761 watch: node watcher 2014-08-20 15:33:13 -07:00
Armon Dadgar 00358baa7f watch: service watcher 2014-08-20 15:29:31 -07:00
Armon Dadgar 970c606f1a watch: Support for key prefix 2014-08-20 15:22:22 -07:00