2021-10-16 16:54:35 +08:00
|
|
|
package proxy
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
2021-11-07 21:45:11 +08:00
|
|
|
"gitee.com/wheat-os/wheatCache/gateway/endpoint"
|
2021-10-16 16:54:35 +08:00
|
|
|
"google.golang.org/grpc"
|
|
|
|
)
|
|
|
|
|
2021-11-07 21:45:11 +08:00
|
|
|
type StreamDirector func(ctx context.Context, fullMethodName string, endpoint endpoint.EndpointInterface) (context.Context, *grpc.ClientConn, error)
|
2021-10-16 16:54:35 +08:00
|
|
|
|
|
|
|
var (
|
|
|
|
clientStreamDescForProxying = &grpc.StreamDesc{
|
|
|
|
ServerStreams: true,
|
|
|
|
ClientStreams: true,
|
|
|
|
}
|
|
|
|
)
|