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