Skip to content

Commit

Permalink
transport: move to internal to make room for new, public transport API (
Browse files Browse the repository at this point in the history
#2212)

This is a breaking change, but the transport package was never intended for use outside of grpc.  Any current users that we are aware of are incorrect or have a preferred alternative.
  • Loading branch information
dfawley authored Jul 11, 2018
1 parent f57a529 commit 11b5827
Showing 27 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion call_test.go
Original file line number Diff line number Diff line change
@@ -32,8 +32,8 @@ import (
"golang.org/x/net/context"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/internal/leakcheck"
"google.golang.org/grpc/internal/transport"
"google.golang.org/grpc/status"
"google.golang.org/grpc/transport"
)

var (
2 changes: 1 addition & 1 deletion clientconn.go
Original file line number Diff line number Diff line change
@@ -41,13 +41,13 @@ import (
"google.golang.org/grpc/internal/backoff"
"google.golang.org/grpc/internal/channelz"
"google.golang.org/grpc/internal/envconfig"
"google.golang.org/grpc/internal/transport"
"google.golang.org/grpc/keepalive"
"google.golang.org/grpc/resolver"
_ "google.golang.org/grpc/resolver/dns" // To register dns resolver.
_ "google.golang.org/grpc/resolver/passthrough" // To register passthrough resolver.
"google.golang.org/grpc/stats"
"google.golang.org/grpc/status"
"google.golang.org/grpc/transport"
)

const (
2 changes: 1 addition & 1 deletion go16.go
Original file line number Diff line number Diff line change
@@ -28,8 +28,8 @@ import (

"golang.org/x/net/context"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/internal/transport"
"google.golang.org/grpc/status"
"google.golang.org/grpc/transport"
)

// dialContext connects to the address on the named network.
2 changes: 1 addition & 1 deletion go17.go
Original file line number Diff line number Diff line change
@@ -29,8 +29,8 @@ import (

netctx "golang.org/x/net/context"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/internal/transport"
"google.golang.org/grpc/status"
"google.golang.org/grpc/transport"
)

// dialContext connects to the address on the named network.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion transport/transport.go → internal/transport/transport.go
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@
// Package transport defines and implements message oriented communication
// channel to complete various transactions (e.g., an RPC). It is meant for
// grpc-internal usage and is not intended to be imported directly by users.
package transport // externally used as import "google.golang.org/grpc/transport"
package transport

import (
"errors"
File renamed without changes.
2 changes: 1 addition & 1 deletion picker_wrapper.go
Original file line number Diff line number Diff line change
@@ -27,8 +27,8 @@ import (
"google.golang.org/grpc/codes"
"google.golang.org/grpc/grpclog"
"google.golang.org/grpc/internal/channelz"
"google.golang.org/grpc/internal/transport"
"google.golang.org/grpc/status"
"google.golang.org/grpc/transport"
)

// pickerWrapper is a wrapper of balancer.Picker. It blocks on certain pick
2 changes: 1 addition & 1 deletion picker_wrapper_test.go
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@ import (
"google.golang.org/grpc/connectivity"
_ "google.golang.org/grpc/grpclog/glogger"
"google.golang.org/grpc/internal/leakcheck"
"google.golang.org/grpc/transport"
"google.golang.org/grpc/internal/transport"
)

const goroutineCount = 5
2 changes: 1 addition & 1 deletion rpc_util.go
Original file line number Diff line number Diff line change
@@ -36,11 +36,11 @@ import (
"google.golang.org/grpc/credentials"
"google.golang.org/grpc/encoding"
"google.golang.org/grpc/encoding/proto"
"google.golang.org/grpc/internal/transport"
"google.golang.org/grpc/metadata"
"google.golang.org/grpc/peer"
"google.golang.org/grpc/stats"
"google.golang.org/grpc/status"
"google.golang.org/grpc/transport"
)

// Compressor defines the interface gRPC uses to compress a message.
2 changes: 1 addition & 1 deletion rpc_util_test.go
Original file line number Diff line number Diff line change
@@ -30,9 +30,9 @@ import (
"google.golang.org/grpc/codes"
"google.golang.org/grpc/encoding"
protoenc "google.golang.org/grpc/encoding/proto"
"google.golang.org/grpc/internal/transport"
"google.golang.org/grpc/status"
perfpb "google.golang.org/grpc/test/codec_perf"
"google.golang.org/grpc/transport"
)

type fullReader struct {
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
@@ -45,12 +45,12 @@ import (
"google.golang.org/grpc/grpclog"
"google.golang.org/grpc/internal"
"google.golang.org/grpc/internal/channelz"
"google.golang.org/grpc/internal/transport"
"google.golang.org/grpc/keepalive"
"google.golang.org/grpc/metadata"
"google.golang.org/grpc/stats"
"google.golang.org/grpc/status"
"google.golang.org/grpc/tap"
"google.golang.org/grpc/transport"
)

const (
2 changes: 1 addition & 1 deletion server_test.go
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@ import (

"golang.org/x/net/context"
"google.golang.org/grpc/internal/leakcheck"
"google.golang.org/grpc/transport"
"google.golang.org/grpc/internal/transport"
)

type emptyServiceServer interface{}
2 changes: 1 addition & 1 deletion stream.go
Original file line number Diff line number Diff line change
@@ -34,10 +34,10 @@ import (
"google.golang.org/grpc/grpclog"
"google.golang.org/grpc/internal/channelz"
"google.golang.org/grpc/internal/grpcrand"
"google.golang.org/grpc/internal/transport"
"google.golang.org/grpc/metadata"
"google.golang.org/grpc/stats"
"google.golang.org/grpc/status"
"google.golang.org/grpc/transport"
)

// StreamHandler defines the handler called by gRPC server to complete the
2 changes: 1 addition & 1 deletion vet.sh
Original file line number Diff line number Diff line change
@@ -78,7 +78,7 @@ fi

# TODO(menghanl): fix errors in transport_test.
staticcheck -ignore '
google.golang.org/grpc/transport/transport_test.go:SA2002
google.golang.org/grpc/internal/transport/transport_test.go:SA2002
google.golang.org/grpc/benchmark/benchmain/main.go:SA1019
google.golang.org/grpc/stats/stats_test.go:SA1019
google.golang.org/grpc/test/end2end_test.go:SA1019

0 comments on commit 11b5827

Please sign in to comment.