فهرست منبع

client: document Client methods

Brian Waldon 11 سال پیش
والد
کامیت
ce4486ff85
1فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 5 0
      client/client.go

+ 5 - 0
client/client.go

@@ -72,7 +72,12 @@ type CancelableTransport interface {
 }
 }
 
 
 type Client interface {
 type Client interface {
+	// Sync updates the internal cache of the etcd cluster's membership.
 	Sync(context.Context) error
 	Sync(context.Context) error
+
+	// Endpoints returns a copy of the current set of API endpoints used
+	// by Client to resolve HTTP requests. If Sync has ever been called,
+	// this may differ from the initial Endpoints provided in the Config.
 	Endpoints() []string
 	Endpoints() []string
 
 
 	httpClient
 	httpClient