Add import comments to grpc packages.

This enforces that these packages are used with these import paths.
See http://golang.org/cmd/go/#hdr-Import_path_checking for documentation.
This commit is contained in:
David Symonds
2015-02-09 13:43:18 +11:00
parent e161b9c071
commit 3981839a52
5 changed files with 6 additions and 6 deletions

View File

@ -33,7 +33,7 @@
// Package codes defines the canonical error codes used by gRPC. It is
// consistent across various languages.
package codes
package codes // import "google.golang.org/grpc/codes"
// A Code is an unsigned 32-bit error code as defined in the gRPC spec.
type Code uint32

View File

@ -32,7 +32,7 @@
*/
// Package credentials implements various credentials supported by gRPC library.
package credentials
package credentials // import "google.golang.org/grpc/credentials"
import (
"crypto/tls"

2
doc.go
View File

@ -3,4 +3,4 @@ Package grpc implements an RPC system called gRPC.
See https://github.com/grpc/grpc for more information about gRPC.
*/
package grpc
package grpc // import "google.golang.org/grpc"

View File

@ -32,7 +32,7 @@
*/
// Package metadata define the structure of the metadata supported by gRPC library.
package metadata
package metadata // import "google.golang.org/grpc/metadata"
import (
"encoding/base64"

View File

@ -35,7 +35,7 @@
Package transport defines and implements message oriented communication channel
to complete various transactions (e.g., an RPC).
*/
package transport
package transport // import "google.golang.org/grpc/transport"
import (
"bytes"
@ -44,10 +44,10 @@ import (
"net"
"sync"
"golang.org/x/net/context"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/credentials"
"google.golang.org/grpc/metadata"
"golang.org/x/net/context"
)
// recvMsg represents the received msg from the transport. All transport