Frank Schroeder
3e00e36f41
golint: Untangle if blocks with return in else
2017-04-25 09:26:13 -07:00
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
Frank Schroeder
ee5b06a231
Use fmt.Fprint/Fprintf/Fprintln
...
Used the following rewrite rules:
gofmt -w -r 'resp.Write([]byte(fmt.Sprintf(a, b, c, d))) -> fmt.Fprintf(resp, a, b, c, d)' *.go
gofmt -w -r 'resp.Write([]byte(fmt.Sprintf(a, b, c))) -> fmt.Fprintf(resp, a, b, c)' *.go
gofmt -w -r 'resp.Write([]byte(fmt.Sprintf(a, b))) -> fmt.Fprintf(resp, a, b)' *.go
gofmt -w -r 'resp.Write([]byte(fmt.Sprintf(a))) -> fmt.Fprint(resp, a)' *.go
gofmt -w -r 'resp.Write([]byte(a + "\n")) -> fmt.Fprintln(resp, a)' *.go
gofmt -w -r 'resp.Write([]byte(a)) -> fmt.Fprint(resp, a)' *.go
2017-04-20 09:02:59 -07:00
Anthony Scalisi
10e028d599
remove various typos
2015-09-11 12:29:54 -07:00
Ryan Uber
b69b780408
agent: error from KVS endpoint if incompatible flags are passed. Fixes #432
2015-01-23 12:48:39 -08:00
Armon Dadgar
3e0f77682a
agent: Support the ?cas parameter to KV DELETE
2015-01-08 17:08:58 -08:00
Ali Abbas
e395420af6
cleanup unreachable code
2014-11-25 19:54:30 +01:00
Armon Dadgar
0ff28a12fa
agent: Copy token in KV PUT/DELETE
2014-08-18 15:46:24 -07:00
Armon Dadgar
88d91c6ee0
agent: Support for raw key lookup. Fixes #150 .
2014-05-20 16:53:43 -07:00
Armon Dadgar
6131fad068
agent: Adding locking support to KV store
2014-05-20 16:25:29 -07:00
Armon Dadgar
d5a8e79b65
agent: Correct spelling of separator. Fixes #101 .
2014-05-07 15:25:17 -07:00
Armon Dadgar
8f37f967e0
agent: Limit KV entries to 512KB. Fixes #123 .
2014-05-06 14:18:32 -07:00
Armon Dadgar
2898a8e64e
agent: Key list of root returns empty list with 200 instead of 404
2014-04-30 23:44:30 -04:00
Armon Dadgar
790a753d7d
agent: Support key listing with seperator
2014-04-30 23:44:27 -04:00
Armon Dadgar
e6e4f7c410
agent: Write out the meta data before a potential 404
2014-04-26 12:20:49 -06:00
Armon Dadgar
386d60f8b2
agent: Remove wrapQuery, call setMeta directly
2014-04-21 12:40:11 -07:00
Armon Dadgar
09ddc01d27
agent: Updating to remove BlockingQuery
2014-04-21 12:25:36 -07:00
Armon Dadgar
ca1c2d75b3
agnet: Fix parsing of cas flag
2014-03-31 20:00:30 -07:00
Armon Dadgar
ceb6964547
consul: Return 404 if no entries found
2014-03-31 20:00:17 -07:00
Armon Dadgar
94df059026
consul: Enable a recursive delete of all keys
2014-03-31 20:00:01 -07:00
Armon Dadgar
6cfde2bf12
agent: First pass at KVS endpoints
2014-03-31 17:12:10 -07:00