Frank Schroeder
3e00e36f41
golint: Untangle if blocks with return in else
2017-04-25 09:26:13 -07:00
James Phillips
556ffc588b
Adds comment about SessionOpts.
2016-10-05 17:53:27 -07:00
Maxim Ivanov
2ed58a2747
More flexible Session configuration when using api.Lock
2016-09-29 14:07:54 +01:00
Seth Vargo
cae0ff354a
Use HTTPS + www. where appropriate
2016-01-13 17:44:01 -05:00
James Phillips
58fb27e70f
Factors server error checking into a new function.
2016-01-06 11:35:16 -08:00
James Phillips
49342dc973
Makes the timeout behavior more intuitive.
...
Previously, it would try once "up to" the timeout, but in practice it would
just fall through. This modifies the behavior to block until the timeout has
been reached.
2016-01-06 09:40:20 -08:00
James Phillips
ca08ba3aee
Adds the ability for semaphore monitors to ride out brief periods of 500 errors.
2016-01-05 18:22:36 -08:00
James Phillips
8caa9e4c7e
Adds "try" support to locks and semaphores.
2016-01-05 18:22:36 -08:00
James Phillips
c2a8fee76c
Adds custom retry time for lock monitors.
2015-11-30 20:16:22 -08:00
James Phillips
86e6230de6
Adds a retry capability to lock monitors in the API client.
2015-11-30 17:09:41 -08:00
Tiru Srikantha
3d97ea0bae
Check to see why a lock acquisition failed
2015-06-05 13:23:23 -07:00
Michael Fraenkel
0e25381494
Reclaim locks
...
- When attempting to lock with the same session that already owns the lock,
Lock() will re-acquire the lock.
2015-04-29 10:10:24 -07:00
Armon Dadgar
2e281dc51f
api: Fixing some comments
2015-01-20 12:58:09 -08:00
Armon Dadgar
7195de51a2
api: Refactor to share session renew code
2015-01-19 16:53:47 -10:00
Armon Dadgar
14691f7e29
api: Detect conflicting existing values for lock/semaphore
2015-01-19 15:32:19 -10:00
Armon Dadgar
4fef14163d
api: Make channels receive only
2015-01-19 14:37:36 -10:00
Armon Dadgar
9608108e64
api: Adding Destroy to cleanup a lock
2015-01-13 14:01:50 -08:00
Armon Dadgar
c291acd96e
api: Minor cleanups in lock
2015-01-12 17:43:13 -08:00
Armon Dadgar
7225088c7d
api: Fixing typo
2015-01-12 15:46:40 -08:00
Armon Dadgar
e05ab983ab
api: Fixing typos
2015-01-09 17:42:24 -08:00
Armon Dadgar
854aef82b0
api: Adding Lock helpers for leader election
2015-01-09 17:35:17 -08:00