2021-10-16 16:54:35 +08:00
|
|
|
package proxy
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
2021-10-24 20:03:35 +08:00
|
|
|
"gitee.com/timedb/wheatCache/gateway/transport"
|
2021-10-16 16:54:35 +08:00
|
|
|
"google.golang.org/grpc"
|
|
|
|
)
|
|
|
|
|
2021-10-24 20:03:35 +08:00
|
|
|
type StreamDirector func(ctx context.Context, fullMethodName string, transport transport.TransPortInterface) (context.Context, *grpc.ClientConn, error)
|
2021-10-16 16:54:35 +08:00
|
|
|
|
|
|
|
var (
|
|
|
|
clientStreamDescForProxying = &grpc.StreamDesc{
|
|
|
|
ServerStreams: true,
|
|
|
|
ClientStreams: true,
|
|
|
|
}
|
|
|
|
)
|