transport/grpc: use the old context; not good enough
Peter Bourgon
6 years ago
20 | 20 |
import math "math"
|
21 | 21 |
|
22 | 22 |
import (
|
23 | |
context "context"
|
|
23 |
context "golang.org/x/net/context"
|
24 | 24 |
grpc "google.golang.org/grpc"
|
25 | 25 |
)
|
26 | 26 |
|
0 | 0 |
package grpc
|
1 | 1 |
|
2 | 2 |
import (
|
3 | |
"context"
|
4 | 3 |
"fmt"
|
5 | 4 |
"reflect"
|
6 | 5 |
"strings"
|
7 | 6 |
|
|
7 |
"golang.org/x/net/context"
|
8 | 8 |
"google.golang.org/grpc"
|
9 | 9 |
"google.golang.org/grpc/metadata"
|
10 | 10 |
|
0 | 0 |
package grpc
|
1 | 1 |
|
2 | 2 |
import (
|
3 | |
"context"
|
|
3 |
"golang.org/x/net/context"
|
4 | 4 |
)
|
5 | 5 |
|
6 | 6 |
// DecodeRequestFunc extracts a user-domain request object from a gRPC request.
|
0 | 0 |
package grpc
|
1 | 1 |
|
2 | 2 |
import (
|
3 | |
"context"
|
4 | 3 |
"encoding/base64"
|
5 | 4 |
"strings"
|
6 | 5 |
|
|
6 |
"golang.org/x/net/context"
|
7 | 7 |
"google.golang.org/grpc/metadata"
|
8 | 8 |
)
|
9 | 9 |
|
0 | 0 |
package grpc
|
1 | 1 |
|
2 | 2 |
import (
|
3 | |
"context"
|
4 | |
|
|
3 |
"golang.org/x/net/context"
|
5 | 4 |
"google.golang.org/grpc/metadata"
|
6 | 5 |
|
7 | 6 |
"github.com/go-kit/kit/endpoint"
|