50 Commits

Author SHA1 Message Date
Brian Waldon
ece03fb987 client: drop unnecessary field deleteAction.Value 2015-02-28 10:45:21 -08:00
Brian Waldon
cd85451971 client: clarify relationship of AfterIndex and waitIndex 2015-02-28 10:45:20 -08:00
Brian Waldon
b174732812 client: introduce Error type 2015-02-28 10:38:47 -08:00
Brian Waldon
8fdc6b154e client: document PrevExistType 2015-02-28 10:38:47 -08:00
Brian Waldon
27de5eec76 client: document Response and Node structs 2015-02-28 10:38:47 -08:00
Brian Waldon
1c03df62a5 client: WaitIndex -> AfterIndex 2015-02-28 10:38:46 -08:00
Brian Waldon
a834f297f9 client: document KeysAPI methods 2015-02-28 10:22:52 -08:00
Brian Waldon
479a17dcbf client: add GetOptions.Sort 2015-02-28 10:22:52 -08:00
Brian Waldon
84ede6fbec client: use options struct for KeysAPI.Get 2015-02-28 10:22:52 -08:00
Brian Waldon
932351a00d client: document Watcher.Next 2015-02-28 10:22:52 -08:00
Brian Waldon
aee95468ba client: document MembersAPI/KeysAPI constructors 2015-02-28 10:22:51 -08:00
Brian Waldon
e885c6c5f4 client: document *Options 2015-02-28 10:22:51 -08:00
Brian Waldon
88cea415a7 client: NewDiscoveryKeysAPI -> NewKeysAPIWithPrefix 2015-02-28 10:22:51 -08:00
Brian Waldon
3d4e1f59dc client: drop unnecessary Nodes type 2015-02-28 10:22:51 -08:00
Brian Waldon
7ff84351f5 client: centralize exported variables 2015-02-28 10:22:51 -08:00
Brian Waldon
bb9f016b91 client: unexport defaultV2KeysPrefix 2015-02-28 10:22:51 -08:00
Brian Waldon
3fdda06602 client: s/SyncableHTTPClient/Client/g 2015-02-28 10:22:51 -08:00
Brian Waldon
bac1d2f420 client: unexport httpClient interface 2015-02-28 10:22:51 -08:00
Brian Waldon
942f0f6b9e client: accept TTL through KeysAPI.Set 2015-02-28 10:22:50 -08:00
Brian Waldon
3d53e9bfaa client: pass around options as pointers 2015-02-28 10:22:50 -08:00
Brian Waldon
0a7e0875d5 client: copy DeleteOptions onto deleteAction 2015-02-28 10:19:05 -08:00
Brian Waldon
025ee0379c client: copy SetOptions onto setAction 2015-02-28 10:19:05 -08:00
Brian Waldon
01fc01ec69 client: KeysAPI.[R]Watch -> Watcher w/ opts struct 2015-02-28 10:19:04 -08:00
Brian Waldon
bc32060b1d client: support PrevIndex in SetOptions & DeleteOptions 2015-02-28 10:14:25 -08:00
Brian Waldon
7ccf5eb476 client: support PrevValue in SetOptions & DeleteOptions 2015-02-28 10:14:25 -08:00
Brian Waldon
0f31f403d1 client: add KeysAPI.Delete 2015-02-28 10:14:25 -08:00
Brian Waldon
6e637f2f75 client: add KeysAPI.Set 2015-02-28 10:14:25 -08:00
Brian Waldon
8b3d05f661 client: add KeysAPI.RGet 2015-02-28 10:14:25 -08:00
Brian Waldon
6d89e6217d client: rename KeysAPI.RecursiveWatch to RWatch 2015-02-28 10:14:25 -08:00
Brian Waldon
4e5c015fe9 client: add Update method 2015-02-28 10:14:25 -08:00
Brian Waldon
c6d955f4c1 client: drive Create with setAction; drop TTL 2015-02-28 10:12:35 -08:00
Jonathan Boulle
f1ed69e883 *: switch to line comments for copyright
Build tags are not compatible with block comments.
Also adds copyright header to a few places it was missing.
2015-01-26 09:53:30 -08:00
Xiang Li
7171410422 discovery: discovery will try forever when there is a timeout.
Perviously, etcd retries three times for timeout error. After this
commit, etcd retries forever. Also this commit make etcd client
aware of gateway timetout.
2014-12-10 23:08:24 -08:00
Brian Waldon
9a728a127a dep: bump golang.org/x/net/context
Move from code.google.com/p/go.net/context to
golang.org/x/net/context before bumping to latest.
2014-11-20 10:19:12 -08:00
Brian Waldon
58af26736c client: further clarify external interfaces 2014-10-31 20:45:55 -07:00
Brian Waldon
17c6f21d68 client: elevate context to caller of KeysAPI 2014-10-31 17:27:43 -07:00
Brian Waldon
824049897d client: export necessary interfaces/methods 2014-10-31 17:25:05 -07:00
Brian Waldon
0ef270c25c client: pass httpActionDo into New[Discovery]KeysAPI 2014-10-31 17:25:05 -07:00
Brian Waldon
1130273178 client: s/newHTTPClusterClient/NewHTTPClient/ 2014-10-31 17:25:05 -07:00
Brian Waldon
d52d836761 client: return full http.Response in httpActionDo 2014-10-31 17:25:04 -07:00
Brian Waldon
8b8b3efdaa client: accept slice of endpoints 2014-10-31 12:21:15 -07:00
Brian Waldon
8d519ffdb8 client: introduce httpClusterClient 2014-10-31 12:21:15 -07:00
Brian Waldon
323fb1ec85 client: introduce httpActionDo interface 2014-10-31 12:21:15 -07:00
Brian Waldon
9d07db4432 client: move timeout into caller of httpClient 2014-10-31 12:21:15 -07:00
Brian Waldon
7c1f4a9baf client: explicitly carry API prefix around 2014-10-31 12:21:15 -07:00
Jonathan Boulle
97c23c4333 client: pass around statuscode instead of Response
There's no real need for do and doWithTimeout to return Responses when
the only field of interest is the status code.

This also removes the superfluous httpMembersAPIResponse struct.
2014-10-29 15:47:55 -07:00
Brian Waldon
00dcbf8bf7 client: unexport HTTPKeysAPI 2014-10-25 08:58:25 -07:00
Brian Waldon
73e48068c2 client: add prefix to KeysAPI 2014-10-25 08:58:25 -07:00
Brian Waldon
45d8fbdcda client: move discovery path logic into client pkg 2014-10-24 13:28:04 -07:00
Brian Waldon
ce4df96e69 client: break apart KeysAPI from httpClient 2014-10-24 13:27:59 -07:00