]> git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/blobdiff - vendor/google.golang.org/grpc/credentials/internal/syscallconn_appengine.go
Upgrade to 0.12
[github/fretlink/terraform-provider-statuscake.git] / vendor / google.golang.org / grpc / credentials / internal / syscallconn_appengine.go
similarity index 62%
rename from vendor/google.golang.org/grpc/naming/go17.go
rename to vendor/google.golang.org/grpc/credentials/internal/syscallconn_appengine.go
index a537b08c602b194cf9d1802bee9d4e2621131cb8..d4346e9eabe6f2a8c468ace52f0b0d1517ce269f 100644 (file)
@@ -1,8 +1,8 @@
-// +build go1.6, !go1.8
+// +build appengine
 
 /*
  *
- * Copyright 2017 gRPC authors.
+ * Copyright 2018 gRPC authors.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  *
  */
 
-package naming
+package internal
 
 import (
        "net"
-
-       "golang.org/x/net/context"
 )
 
-var (
-       lookupHost = func(ctx context.Context, host string) ([]string, error) { return net.LookupHost(host) }
-       lookupSRV  = func(ctx context.Context, service, proto, name string) (string, []*net.SRV, error) {
-               return net.LookupSRV(service, proto, name)
-       }
-)
+// WrapSyscallConn returns newConn on appengine.
+func WrapSyscallConn(rawConn, newConn net.Conn) net.Conn {
+       return newConn
+}