fix go builds after deleting pkg internal

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
Ahmet Alp Balkan 2018-07-10 20:11:30 -07:00
parent dff246a3d7
commit 61cf05844d
13 changed files with 56 additions and 57 deletions

View file

@ -5,8 +5,10 @@ RUN apk add --no-cache \
WORKDIR /src/microservices-demo/shippingservice
# get known dependencies
RUN go get -d golang.org/x/net/context \
google.golang.org/grpc \
google.golang.org/grpc/reflection
google.golang.org/grpc \
google.golang.org/grpc/reflection \
go.opencensus.io/plugin/ocgrpc
COPY . .
# get other dependencies
RUN go get -d ./...

View file

@ -6,8 +6,7 @@ import (
"net"
"os"
"microservices-demo/src/internal"
"go.opencensus.io/plugin/ocgrpc"
"golang.org/x/net/context"
"google.golang.org/grpc"
"google.golang.org/grpc/reflection"
@ -72,7 +71,7 @@ func main() {
if err != nil {
log.Fatalf("failed to listen: %v", err)
}
s := grpc.NewServer(internal.DefaultServerOptions()...)
s := grpc.NewServer(grpc.StatsHandler(&ocgrpc.ServerHandler{}))
pb.RegisterShippingServiceServer(s, &server{})
log.Printf("Shipping Service listening on port %s", port)