Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transition to use golang/protobuf to support automated code generation #226

Merged
merged 10 commits into from
Sep 10, 2019
Prev Previous commit
Next Next commit
add warning
Signed-off-by: Kuat Yessenov <kuat@google.com>
  • Loading branch information
kyessenov committed Sep 9, 2019
commit b55f5597f79471a7b578a9eaf18f0a9e71fa6a0a
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@
[![Go Report Card](https://goreportcard.com/badge/github.com/envoyproxy/go-control-plane)](https://goreportcard.com/report/github.com/envoyproxy/go-control-plane)
[![GoDoc](https://godoc.org/github.com/envoyproxy/go-control-plane?status.svg)](https://godoc.org/github.com/envoyproxy/go-control-plane)

_Warning!_ This is a v2 branch used containing golang/protobuf stubs instead gogo/protobuf stubs.

This repository contains a Go-based implementation of an API server that
implements the discovery service APIs defined in
[data-plane-api](https://github.com/envoyproxy/data-plane-api).


## Scope

Due to the variety of platforms out there, there is no single
Expand Down Expand Up @@ -92,10 +94,10 @@ import (
"google.golang.org/grpc"
"net"

api "github.com/envoyproxy/go-control-plane/envoy/api/v2"
discovery "github.com/envoyproxy/go-control-plane/envoy/service/discovery/v2"
"github.com/envoyproxy/go-control-plane/pkg/cache"
xds "github.com/envoyproxy/go-control-plane/pkg/server"
api "github.com/envoyproxy/go-control-plane/v2/envoy/api/v2"
discovery "github.com/envoyproxy/go-control-plane/v2/envoy/service/discovery/v2"
"github.com/envoyproxy/go-control-plane/v2/pkg/cache"
xds "github.com/envoyproxy/go-control-plane/v2/pkg/server"
)

func main() {
Expand All @@ -121,7 +123,7 @@ As mentioned in [Scope](https://github.com/envoyproxy/go-control-plane/blob/mast
Generate the key based on the node information as follows and cache the configurations.

```go
import "github.com/envoyproxy/go-control-plane/pkg/cache"
import "github.com/envoyproxy/go-control-plane/v2/pkg/cache"

var clusters, endpoints, routes, listeners []cache.Resource

Expand Down