Documentation, CHANGELOG: use new go.etcd.io/etcd/v3 pkg

Use the new package path in the docs and announce it in the CHANGELOG
This commit is contained in:
Brandon Philips 2020-04-28 22:02:19 +00:00
parent c9cdefaeac
commit d88d765ba4
5 changed files with 8 additions and 7 deletions

View File

@ -21,6 +21,7 @@ See [code changes](https://github.com/etcd-io/etcd/compare/v3.4.0...v3.5.0) and
### Breaking Changes ### Breaking Changes
- `go.etcd.io/etcd` Go packages have moved to `go.etcd.io/etcd/v3` to follow the [Go modules](https://github.com/golang/go/wiki/Modules) conventions
- Changed behavior of clienv3 API [MemberList](https://github.com/etcd-io/etcd/pull/11639). - Changed behavior of clienv3 API [MemberList](https://github.com/etcd-io/etcd/pull/11639).
- Previously, it is directly served with server's local data, which could be stale. - Previously, it is directly served with server's local data, which could be stale.
- Now, it is served with linearizable guarantee. If the server is disconnected from quorum, `MemberList` call will fail. - Now, it is served with linearizable guarantee. If the server is disconnected from quorum, `MemberList` call will fail.

View File

@ -10,8 +10,8 @@ The etcd client provides a gRPC resolver for resolving gRPC endpoints with an et
```go ```go
import ( import (
"go.etcd.io/etcd/clientv3" "go.etcd.io/etcd/v3/clientv3"
etcdnaming "go.etcd.io/etcd/clientv3/naming" etcdnaming "go.etcd.io/etcd/v3/clientv3/naming"
"google.golang.org/grpc" "google.golang.org/grpc"
) )

View File

@ -28,8 +28,8 @@ To build a vendored `etcd` from the `master` branch via `go get`:
# GOPATH should be set # GOPATH should be set
$ echo $GOPATH $ echo $GOPATH
/Users/example/go /Users/example/go
$ go get -v go.etcd.io/etcd $ go get -v go.etcd.io/etcd/v3
$ go get -v go.etcd.io/etcd/etcdctl $ go get -v go.etcd.io/etcd/v3/etcdctl
``` ```
## Test the installation ## Test the installation

View File

@ -9,7 +9,7 @@ For full compatibility, it is recommended to vendor builds using etcd's vendored
## Install ## Install
```bash ```bash
go get go.etcd.io/etcd/client go get go.etcd.io/etcd/v3/client
``` ```
## Usage ## Usage
@ -22,7 +22,7 @@ import (
"time" "time"
"context" "context"
"go.etcd.io/etcd/client" "go.etcd.io/etcd/v3/client"
) )
func main() { func main() {

View File

@ -16,7 +16,7 @@ For example,
import ( import (
"fmt" "fmt"
"go.etcd.io/etcd/pkg/adt" "go.etcd.io/etcd/v3/pkg/adt"
) )
func main() { func main() {