Frank Schroeder
9de4555c0c
golint: Untangle if blocks with return in else
2017-04-25 09:26:13 -07:00
Frank Schroeder
9f8f258d4d
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
58c3b1ff38
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
8d733b7fca
remove various typos
2015-09-11 12:29:54 -07:00
Ryan Uber
26c9d96ccb
agent: error from KVS endpoint if incompatible flags are passed. Fixes #432
2015-01-23 12:48:39 -08:00
Armon Dadgar
7ec294597e
agent: Support the ?cas parameter to KV DELETE
2015-01-08 17:08:58 -08:00
Ali Abbas
73504a01e9
cleanup unreachable code
2014-11-25 19:54:30 +01:00
Armon Dadgar
e27bead346
agent: Copy token in KV PUT/DELETE
2014-08-18 15:46:24 -07:00
Armon Dadgar
ce5470cbc2
agent: Support for raw key lookup. Fixes #150 .
2014-05-20 16:53:43 -07:00
Armon Dadgar
07a75899ef
agent: Adding locking support to KV store
2014-05-20 16:25:29 -07:00
Armon Dadgar
01e085cc64
agent: Correct spelling of separator. Fixes #101 .
2014-05-07 15:25:17 -07:00
Armon Dadgar
a1c66d68c8
agent: Limit KV entries to 512KB. Fixes #123 .
2014-05-06 14:18:32 -07:00
Armon Dadgar
cd08e81958
agent: Key list of root returns empty list with 200 instead of 404
2014-04-30 23:44:30 -04:00
Armon Dadgar
947e5b58ba
agent: Support key listing with seperator
2014-04-30 23:44:27 -04:00
Armon Dadgar
778dfb8fd2
agent: Write out the meta data before a potential 404
2014-04-26 12:20:49 -06:00
Armon Dadgar
53d3449947
agent: Remove wrapQuery, call setMeta directly
2014-04-21 12:40:11 -07:00
Armon Dadgar
71b95a0f47
agent: Updating to remove BlockingQuery
2014-04-21 12:25:36 -07:00
Armon Dadgar
96bd58df20
agnet: Fix parsing of cas flag
2014-03-31 20:00:30 -07:00
Armon Dadgar
a29d6c2d4e
consul: Return 404 if no entries found
2014-03-31 20:00:17 -07:00
Armon Dadgar
d1de666855
consul: Enable a recursive delete of all keys
2014-03-31 20:00:01 -07:00
Armon Dadgar
5af036704d
agent: First pass at KVS endpoints
2014-03-31 17:12:10 -07:00