client: document Config

release-2.1
Brian Waldon 2015-01-28 12:02:43 -08:00 committed by Yicheng Qin
parent 6d82472275
commit 19dd4a0f3c
1 changed files with 18 additions and 0 deletions

View File

@ -42,7 +42,25 @@ var (
)
type Config struct {
// Endpoints defines a set of URLs (schemes, hosts and ports only)
// that can be used to communicate with a logical etcd cluster. For
// example, a three-node cluster could be provided like so:
//
// Endpoints: []string{
// "http://node1.example.com:4001",
// "http://node2.example.com:2379",
// "http://node3.example.com:4001",
// }
//
// If multiple endpoints are provided, the Client will attempt to
// use them all in the event that one or more of them are unusable.
//
// If Client.Sync is ever called, the Client may cache an alternate
// set of endpoints to continue operation.
Endpoints []string
// Transport is used by the Client to drive HTTP requests. If not
// provided, net/http.DefaultTransport will be used.
Transport CancelableTransport
}