1882 lines
65 KiB
Go
1882 lines
65 KiB
Go
|
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
|
||
|
// source: examples/examplepb/flow_combination.proto
|
||
|
|
||
|
/*
|
||
|
Package examplepb is a reverse proxy.
|
||
|
|
||
|
It translates gRPC into RESTful JSON APIs.
|
||
|
*/
|
||
|
package examplepb
|
||
|
|
||
|
import (
|
||
|
"io"
|
||
|
"net/http"
|
||
|
|
||
|
"github.com/golang/protobuf/proto"
|
||
|
"github.com/grpc-ecosystem/grpc-gateway/runtime"
|
||
|
"github.com/grpc-ecosystem/grpc-gateway/utilities"
|
||
|
"golang.org/x/net/context"
|
||
|
"google.golang.org/grpc"
|
||
|
"google.golang.org/grpc/codes"
|
||
|
"google.golang.org/grpc/grpclog"
|
||
|
"google.golang.org/grpc/status"
|
||
|
)
|
||
|
|
||
|
var _ codes.Code
|
||
|
var _ io.Reader
|
||
|
var _ status.Status
|
||
|
var _ = runtime.String
|
||
|
var _ = utilities.NewDoubleArray
|
||
|
|
||
|
func request_FlowCombination_RpcEmptyRpc_0(ctx context.Context, marshaler runtime.Marshaler, client FlowCombinationClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||
|
var protoReq EmptyProto
|
||
|
var metadata runtime.ServerMetadata
|
||
|
|
||
|
msg, err := client.RpcEmptyRpc(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
||
|
return msg, metadata, err
|
||
|
|
||
|
}
|
||
|
|
||
|
func request_FlowCombination_RpcEmptyStream_0(ctx context.Context, marshaler runtime.Marshaler, client FlowCombinationClient, req *http.Request, pathParams map[string]string) (FlowCombination_RpcEmptyStreamClient, runtime.ServerMetadata, error) {
|
||
|
var protoReq EmptyProto
|
||
|
var metadata runtime.ServerMetadata
|
||
|
|
||
|
stream, err := client.RpcEmptyStream(ctx, &protoReq)
|
||
|
if err != nil {
|
||
|
return nil, metadata, err
|
||
|
}
|
||
|
header, err := stream.Header()
|
||
|
if err != nil {
|
||
|
return nil, metadata, err
|
||
|
}
|
||
|
metadata.HeaderMD = header
|
||
|
return stream, metadata, nil
|
||
|
|
||
|
}
|
||
|
|
||
|
func request_FlowCombination_StreamEmptyRpc_0(ctx context.Context, marshaler runtime.Marshaler, client FlowCombinationClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||
|
var metadata runtime.ServerMetadata
|
||
|
stream, err := client.StreamEmptyRpc(ctx)
|
||
|
if err != nil {
|
||
|
grpclog.Printf("Failed to start streaming: %v", err)
|
||
|
return nil, metadata, err
|
||
|
}
|
||
|
dec := marshaler.NewDecoder(req.Body)
|
||
|
for {
|
||
|
var protoReq EmptyProto
|
||
|
err = dec.Decode(&protoReq)
|
||
|
if err == io.EOF {
|
||
|
break
|
||
|
}
|
||
|
if err != nil {
|
||
|
grpclog.Printf("Failed to decode request: %v", err)
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||
|
}
|
||
|
if err = stream.Send(&protoReq); err != nil {
|
||
|
grpclog.Printf("Failed to send request: %v", err)
|
||
|
return nil, metadata, err
|
||
|
}
|
||
|
}
|
||
|
|
||
|
if err := stream.CloseSend(); err != nil {
|
||
|
grpclog.Printf("Failed to terminate client stream: %v", err)
|
||
|
return nil, metadata, err
|
||
|
}
|
||
|
header, err := stream.Header()
|
||
|
if err != nil {
|
||
|
grpclog.Printf("Failed to get header from client: %v", err)
|
||
|
return nil, metadata, err
|
||
|
}
|
||
|
metadata.HeaderMD = header
|
||
|
|
||
|
msg, err := stream.CloseAndRecv()
|
||
|
metadata.TrailerMD = stream.Trailer()
|
||
|
return msg, metadata, err
|
||
|
|
||
|
}
|
||
|
|
||
|
func request_FlowCombination_StreamEmptyStream_0(ctx context.Context, marshaler runtime.Marshaler, client FlowCombinationClient, req *http.Request, pathParams map[string]string) (FlowCombination_StreamEmptyStreamClient, runtime.ServerMetadata, error) {
|
||
|
var metadata runtime.ServerMetadata
|
||
|
stream, err := client.StreamEmptyStream(ctx)
|
||
|
if err != nil {
|
||
|
grpclog.Printf("Failed to start streaming: %v", err)
|
||
|
return nil, metadata, err
|
||
|
}
|
||
|
dec := marshaler.NewDecoder(req.Body)
|
||
|
handleSend := func() error {
|
||
|
var protoReq EmptyProto
|
||
|
err = dec.Decode(&protoReq)
|
||
|
if err == io.EOF {
|
||
|
return err
|
||
|
}
|
||
|
if err != nil {
|
||
|
grpclog.Printf("Failed to decode request: %v", err)
|
||
|
return err
|
||
|
}
|
||
|
if err = stream.Send(&protoReq); err != nil {
|
||
|
grpclog.Printf("Failed to send request: %v", err)
|
||
|
return err
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
if err := handleSend(); err != nil {
|
||
|
if cerr := stream.CloseSend(); cerr != nil {
|
||
|
grpclog.Printf("Failed to terminate client stream: %v", cerr)
|
||
|
}
|
||
|
if err == io.EOF {
|
||
|
return stream, metadata, nil
|
||
|
}
|
||
|
return nil, metadata, err
|
||
|
}
|
||
|
go func() {
|
||
|
for {
|
||
|
if err := handleSend(); err != nil {
|
||
|
break
|
||
|
}
|
||
|
}
|
||
|
if err := stream.CloseSend(); err != nil {
|
||
|
grpclog.Printf("Failed to terminate client stream: %v", err)
|
||
|
}
|
||
|
}()
|
||
|
header, err := stream.Header()
|
||
|
if err != nil {
|
||
|
grpclog.Printf("Failed to get header from client: %v", err)
|
||
|
return nil, metadata, err
|
||
|
}
|
||
|
metadata.HeaderMD = header
|
||
|
return stream, metadata, nil
|
||
|
}
|
||
|
|
||
|
func request_FlowCombination_RpcBodyRpc_0(ctx context.Context, marshaler runtime.Marshaler, client FlowCombinationClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||
|
var protoReq NonEmptyProto
|
||
|
var metadata runtime.ServerMetadata
|
||
|
|
||
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||
|
}
|
||
|
|
||
|
msg, err := client.RpcBodyRpc(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
||
|
return msg, metadata, err
|
||
|
|
||
|
}
|
||
|
|
||
|
func request_FlowCombination_RpcBodyRpc_1(ctx context.Context, marshaler runtime.Marshaler, client FlowCombinationClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||
|
var protoReq NonEmptyProto
|
||
|
var metadata runtime.ServerMetadata
|
||
|
|
||
|
var (
|
||
|
val string
|
||
|
ok bool
|
||
|
err error
|
||
|
_ = err
|
||
|
)
|
||
|
|
||
|
val, ok = pathParams["a"]
|
||
|
if !ok {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "a")
|
||
|
}
|
||
|
|
||
|
protoReq.A, err = runtime.String(val)
|
||
|
|
||
|
if err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "a", err)
|
||
|
}
|
||
|
|
||
|
val, ok = pathParams["b"]
|
||
|
if !ok {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "b")
|
||
|
}
|
||
|
|
||
|
protoReq.B, err = runtime.String(val)
|
||
|
|
||
|
if err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "b", err)
|
||
|
}
|
||
|
|
||
|
val, ok = pathParams["c"]
|
||
|
if !ok {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "c")
|
||
|
}
|
||
|
|
||
|
protoReq.C, err = runtime.String(val)
|
||
|
|
||
|
if err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "c", err)
|
||
|
}
|
||
|
|
||
|
msg, err := client.RpcBodyRpc(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
||
|
return msg, metadata, err
|
||
|
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
filter_FlowCombination_RpcBodyRpc_2 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
|
||
|
)
|
||
|
|
||
|
func request_FlowCombination_RpcBodyRpc_2(ctx context.Context, marshaler runtime.Marshaler, client FlowCombinationClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||
|
var protoReq NonEmptyProto
|
||
|
var metadata runtime.ServerMetadata
|
||
|
|
||
|
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_FlowCombination_RpcBodyRpc_2); err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||
|
}
|
||
|
|
||
|
msg, err := client.RpcBodyRpc(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
||
|
return msg, metadata, err
|
||
|
|
||
|
}
|
||
|
|
||
|
func request_FlowCombination_RpcBodyRpc_3(ctx context.Context, marshaler runtime.Marshaler, client FlowCombinationClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||
|
var protoReq NonEmptyProto
|
||
|
var metadata runtime.ServerMetadata
|
||
|
|
||
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.C); err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
val string
|
||
|
ok bool
|
||
|
err error
|
||
|
_ = err
|
||
|
)
|
||
|
|
||
|
val, ok = pathParams["a"]
|
||
|
if !ok {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "a")
|
||
|
}
|
||
|
|
||
|
protoReq.A, err = runtime.String(val)
|
||
|
|
||
|
if err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "a", err)
|
||
|
}
|
||
|
|
||
|
val, ok = pathParams["b"]
|
||
|
if !ok {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "b")
|
||
|
}
|
||
|
|
||
|
protoReq.B, err = runtime.String(val)
|
||
|
|
||
|
if err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "b", err)
|
||
|
}
|
||
|
|
||
|
msg, err := client.RpcBodyRpc(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
||
|
return msg, metadata, err
|
||
|
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
filter_FlowCombination_RpcBodyRpc_4 = &utilities.DoubleArray{Encoding: map[string]int{"c": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}}
|
||
|
)
|
||
|
|
||
|
func request_FlowCombination_RpcBodyRpc_4(ctx context.Context, marshaler runtime.Marshaler, client FlowCombinationClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||
|
var protoReq NonEmptyProto
|
||
|
var metadata runtime.ServerMetadata
|
||
|
|
||
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.C); err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||
|
}
|
||
|
|
||
|
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_FlowCombination_RpcBodyRpc_4); err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||
|
}
|
||
|
|
||
|
msg, err := client.RpcBodyRpc(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
||
|
return msg, metadata, err
|
||
|
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
filter_FlowCombination_RpcBodyRpc_5 = &utilities.DoubleArray{Encoding: map[string]int{"c": 0, "a": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}}
|
||
|
)
|
||
|
|
||
|
func request_FlowCombination_RpcBodyRpc_5(ctx context.Context, marshaler runtime.Marshaler, client FlowCombinationClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||
|
var protoReq NonEmptyProto
|
||
|
var metadata runtime.ServerMetadata
|
||
|
|
||
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.C); err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
val string
|
||
|
ok bool
|
||
|
err error
|
||
|
_ = err
|
||
|
)
|
||
|
|
||
|
val, ok = pathParams["a"]
|
||
|
if !ok {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "a")
|
||
|
}
|
||
|
|
||
|
protoReq.A, err = runtime.String(val)
|
||
|
|
||
|
if err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "a", err)
|
||
|
}
|
||
|
|
||
|
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_FlowCombination_RpcBodyRpc_5); err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||
|
}
|
||
|
|
||
|
msg, err := client.RpcBodyRpc(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
||
|
return msg, metadata, err
|
||
|
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
filter_FlowCombination_RpcBodyRpc_6 = &utilities.DoubleArray{Encoding: map[string]int{"a": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}}
|
||
|
)
|
||
|
|
||
|
func request_FlowCombination_RpcBodyRpc_6(ctx context.Context, marshaler runtime.Marshaler, client FlowCombinationClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||
|
var protoReq NonEmptyProto
|
||
|
var metadata runtime.ServerMetadata
|
||
|
|
||
|
var (
|
||
|
val string
|
||
|
ok bool
|
||
|
err error
|
||
|
_ = err
|
||
|
)
|
||
|
|
||
|
val, ok = pathParams["a"]
|
||
|
if !ok {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "a")
|
||
|
}
|
||
|
|
||
|
protoReq.A, err = runtime.String(val)
|
||
|
|
||
|
if err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "a", err)
|
||
|
}
|
||
|
|
||
|
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_FlowCombination_RpcBodyRpc_6); err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||
|
}
|
||
|
|
||
|
msg, err := client.RpcBodyRpc(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
||
|
return msg, metadata, err
|
||
|
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
filter_FlowCombination_RpcPathSingleNestedRpc_0 = &utilities.DoubleArray{Encoding: map[string]int{"a": 0, "str": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}}
|
||
|
)
|
||
|
|
||
|
func request_FlowCombination_RpcPathSingleNestedRpc_0(ctx context.Context, marshaler runtime.Marshaler, client FlowCombinationClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||
|
var protoReq SingleNestedProto
|
||
|
var metadata runtime.ServerMetadata
|
||
|
|
||
|
var (
|
||
|
val string
|
||
|
ok bool
|
||
|
err error
|
||
|
_ = err
|
||
|
)
|
||
|
|
||
|
val, ok = pathParams["a.str"]
|
||
|
if !ok {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "a.str")
|
||
|
}
|
||
|
|
||
|
err = runtime.PopulateFieldFromPath(&protoReq, "a.str", val)
|
||
|
|
||
|
if err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "a.str", err)
|
||
|
}
|
||
|
|
||
|
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_FlowCombination_RpcPathSingleNestedRpc_0); err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||
|
}
|
||
|
|
||
|
msg, err := client.RpcPathSingleNestedRpc(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
||
|
return msg, metadata, err
|
||
|
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
filter_FlowCombination_RpcPathNestedRpc_0 = &utilities.DoubleArray{Encoding: map[string]int{"c": 0, "a": 1, "str": 2, "b": 3}, Base: []int{1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 1, 3, 1, 2, 4, 5}}
|
||
|
)
|
||
|
|
||
|
func request_FlowCombination_RpcPathNestedRpc_0(ctx context.Context, marshaler runtime.Marshaler, client FlowCombinationClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||
|
var protoReq NestedProto
|
||
|
var metadata runtime.ServerMetadata
|
||
|
|
||
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.C); err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
val string
|
||
|
ok bool
|
||
|
err error
|
||
|
_ = err
|
||
|
)
|
||
|
|
||
|
val, ok = pathParams["a.str"]
|
||
|
if !ok {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "a.str")
|
||
|
}
|
||
|
|
||
|
err = runtime.PopulateFieldFromPath(&protoReq, "a.str", val)
|
||
|
|
||
|
if err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "a.str", err)
|
||
|
}
|
||
|
|
||
|
val, ok = pathParams["b"]
|
||
|
if !ok {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "b")
|
||
|
}
|
||
|
|
||
|
protoReq.B, err = runtime.String(val)
|
||
|
|
||
|
if err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "b", err)
|
||
|
}
|
||
|
|
||
|
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_FlowCombination_RpcPathNestedRpc_0); err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||
|
}
|
||
|
|
||
|
msg, err := client.RpcPathNestedRpc(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
||
|
return msg, metadata, err
|
||
|
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
filter_FlowCombination_RpcPathNestedRpc_1 = &utilities.DoubleArray{Encoding: map[string]int{"a": 0, "str": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}}
|
||
|
)
|
||
|
|
||
|
func request_FlowCombination_RpcPathNestedRpc_1(ctx context.Context, marshaler runtime.Marshaler, client FlowCombinationClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||
|
var protoReq NestedProto
|
||
|
var metadata runtime.ServerMetadata
|
||
|
|
||
|
var (
|
||
|
val string
|
||
|
ok bool
|
||
|
err error
|
||
|
_ = err
|
||
|
)
|
||
|
|
||
|
val, ok = pathParams["a.str"]
|
||
|
if !ok {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "a.str")
|
||
|
}
|
||
|
|
||
|
err = runtime.PopulateFieldFromPath(&protoReq, "a.str", val)
|
||
|
|
||
|
if err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "a.str", err)
|
||
|
}
|
||
|
|
||
|
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_FlowCombination_RpcPathNestedRpc_1); err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||
|
}
|
||
|
|
||
|
msg, err := client.RpcPathNestedRpc(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
||
|
return msg, metadata, err
|
||
|
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
filter_FlowCombination_RpcPathNestedRpc_2 = &utilities.DoubleArray{Encoding: map[string]int{"c": 0, "a": 1, "str": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 3, 2, 4}}
|
||
|
)
|
||
|
|
||
|
func request_FlowCombination_RpcPathNestedRpc_2(ctx context.Context, marshaler runtime.Marshaler, client FlowCombinationClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||
|
var protoReq NestedProto
|
||
|
var metadata runtime.ServerMetadata
|
||
|
|
||
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.C); err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
val string
|
||
|
ok bool
|
||
|
err error
|
||
|
_ = err
|
||
|
)
|
||
|
|
||
|
val, ok = pathParams["a.str"]
|
||
|
if !ok {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "a.str")
|
||
|
}
|
||
|
|
||
|
err = runtime.PopulateFieldFromPath(&protoReq, "a.str", val)
|
||
|
|
||
|
if err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "a.str", err)
|
||
|
}
|
||
|
|
||
|
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_FlowCombination_RpcPathNestedRpc_2); err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||
|
}
|
||
|
|
||
|
msg, err := client.RpcPathNestedRpc(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
|
||
|
return msg, metadata, err
|
||
|
|
||
|
}
|
||
|
|
||
|
func request_FlowCombination_RpcBodyStream_0(ctx context.Context, marshaler runtime.Marshaler, client FlowCombinationClient, req *http.Request, pathParams map[string]string) (FlowCombination_RpcBodyStreamClient, runtime.ServerMetadata, error) {
|
||
|
var protoReq NonEmptyProto
|
||
|
var metadata runtime.ServerMetadata
|
||
|
|
||
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||
|
}
|
||
|
|
||
|
stream, err := client.RpcBodyStream(ctx, &protoReq)
|
||
|
if err != nil {
|
||
|
return nil, metadata, err
|
||
|
}
|
||
|
header, err := stream.Header()
|
||
|
if err != nil {
|
||
|
return nil, metadata, err
|
||
|
}
|
||
|
metadata.HeaderMD = header
|
||
|
return stream, metadata, nil
|
||
|
|
||
|
}
|
||
|
|
||
|
func request_FlowCombination_RpcBodyStream_1(ctx context.Context, marshaler runtime.Marshaler, client FlowCombinationClient, req *http.Request, pathParams map[string]string) (FlowCombination_RpcBodyStreamClient, runtime.ServerMetadata, error) {
|
||
|
var protoReq NonEmptyProto
|
||
|
var metadata runtime.ServerMetadata
|
||
|
|
||
|
var (
|
||
|
val string
|
||
|
ok bool
|
||
|
err error
|
||
|
_ = err
|
||
|
)
|
||
|
|
||
|
val, ok = pathParams["a"]
|
||
|
if !ok {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "a")
|
||
|
}
|
||
|
|
||
|
protoReq.A, err = runtime.String(val)
|
||
|
|
||
|
if err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "a", err)
|
||
|
}
|
||
|
|
||
|
val, ok = pathParams["b"]
|
||
|
if !ok {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "b")
|
||
|
}
|
||
|
|
||
|
protoReq.B, err = runtime.String(val)
|
||
|
|
||
|
if err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "b", err)
|
||
|
}
|
||
|
|
||
|
val, ok = pathParams["c"]
|
||
|
if !ok {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "c")
|
||
|
}
|
||
|
|
||
|
protoReq.C, err = runtime.String(val)
|
||
|
|
||
|
if err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "c", err)
|
||
|
}
|
||
|
|
||
|
stream, err := client.RpcBodyStream(ctx, &protoReq)
|
||
|
if err != nil {
|
||
|
return nil, metadata, err
|
||
|
}
|
||
|
header, err := stream.Header()
|
||
|
if err != nil {
|
||
|
return nil, metadata, err
|
||
|
}
|
||
|
metadata.HeaderMD = header
|
||
|
return stream, metadata, nil
|
||
|
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
filter_FlowCombination_RpcBodyStream_2 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
|
||
|
)
|
||
|
|
||
|
func request_FlowCombination_RpcBodyStream_2(ctx context.Context, marshaler runtime.Marshaler, client FlowCombinationClient, req *http.Request, pathParams map[string]string) (FlowCombination_RpcBodyStreamClient, runtime.ServerMetadata, error) {
|
||
|
var protoReq NonEmptyProto
|
||
|
var metadata runtime.ServerMetadata
|
||
|
|
||
|
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_FlowCombination_RpcBodyStream_2); err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||
|
}
|
||
|
|
||
|
stream, err := client.RpcBodyStream(ctx, &protoReq)
|
||
|
if err != nil {
|
||
|
return nil, metadata, err
|
||
|
}
|
||
|
header, err := stream.Header()
|
||
|
if err != nil {
|
||
|
return nil, metadata, err
|
||
|
}
|
||
|
metadata.HeaderMD = header
|
||
|
return stream, metadata, nil
|
||
|
|
||
|
}
|
||
|
|
||
|
func request_FlowCombination_RpcBodyStream_3(ctx context.Context, marshaler runtime.Marshaler, client FlowCombinationClient, req *http.Request, pathParams map[string]string) (FlowCombination_RpcBodyStreamClient, runtime.ServerMetadata, error) {
|
||
|
var protoReq NonEmptyProto
|
||
|
var metadata runtime.ServerMetadata
|
||
|
|
||
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.C); err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
val string
|
||
|
ok bool
|
||
|
err error
|
||
|
_ = err
|
||
|
)
|
||
|
|
||
|
val, ok = pathParams["a"]
|
||
|
if !ok {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "a")
|
||
|
}
|
||
|
|
||
|
protoReq.A, err = runtime.String(val)
|
||
|
|
||
|
if err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "a", err)
|
||
|
}
|
||
|
|
||
|
val, ok = pathParams["b"]
|
||
|
if !ok {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "b")
|
||
|
}
|
||
|
|
||
|
protoReq.B, err = runtime.String(val)
|
||
|
|
||
|
if err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "b", err)
|
||
|
}
|
||
|
|
||
|
stream, err := client.RpcBodyStream(ctx, &protoReq)
|
||
|
if err != nil {
|
||
|
return nil, metadata, err
|
||
|
}
|
||
|
header, err := stream.Header()
|
||
|
if err != nil {
|
||
|
return nil, metadata, err
|
||
|
}
|
||
|
metadata.HeaderMD = header
|
||
|
return stream, metadata, nil
|
||
|
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
filter_FlowCombination_RpcBodyStream_4 = &utilities.DoubleArray{Encoding: map[string]int{"c": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}}
|
||
|
)
|
||
|
|
||
|
func request_FlowCombination_RpcBodyStream_4(ctx context.Context, marshaler runtime.Marshaler, client FlowCombinationClient, req *http.Request, pathParams map[string]string) (FlowCombination_RpcBodyStreamClient, runtime.ServerMetadata, error) {
|
||
|
var protoReq NonEmptyProto
|
||
|
var metadata runtime.ServerMetadata
|
||
|
|
||
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.C); err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||
|
}
|
||
|
|
||
|
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_FlowCombination_RpcBodyStream_4); err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||
|
}
|
||
|
|
||
|
stream, err := client.RpcBodyStream(ctx, &protoReq)
|
||
|
if err != nil {
|
||
|
return nil, metadata, err
|
||
|
}
|
||
|
header, err := stream.Header()
|
||
|
if err != nil {
|
||
|
return nil, metadata, err
|
||
|
}
|
||
|
metadata.HeaderMD = header
|
||
|
return stream, metadata, nil
|
||
|
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
filter_FlowCombination_RpcBodyStream_5 = &utilities.DoubleArray{Encoding: map[string]int{"c": 0, "a": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}}
|
||
|
)
|
||
|
|
||
|
func request_FlowCombination_RpcBodyStream_5(ctx context.Context, marshaler runtime.Marshaler, client FlowCombinationClient, req *http.Request, pathParams map[string]string) (FlowCombination_RpcBodyStreamClient, runtime.ServerMetadata, error) {
|
||
|
var protoReq NonEmptyProto
|
||
|
var metadata runtime.ServerMetadata
|
||
|
|
||
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.C); err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
val string
|
||
|
ok bool
|
||
|
err error
|
||
|
_ = err
|
||
|
)
|
||
|
|
||
|
val, ok = pathParams["a"]
|
||
|
if !ok {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "a")
|
||
|
}
|
||
|
|
||
|
protoReq.A, err = runtime.String(val)
|
||
|
|
||
|
if err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "a", err)
|
||
|
}
|
||
|
|
||
|
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_FlowCombination_RpcBodyStream_5); err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||
|
}
|
||
|
|
||
|
stream, err := client.RpcBodyStream(ctx, &protoReq)
|
||
|
if err != nil {
|
||
|
return nil, metadata, err
|
||
|
}
|
||
|
header, err := stream.Header()
|
||
|
if err != nil {
|
||
|
return nil, metadata, err
|
||
|
}
|
||
|
metadata.HeaderMD = header
|
||
|
return stream, metadata, nil
|
||
|
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
filter_FlowCombination_RpcBodyStream_6 = &utilities.DoubleArray{Encoding: map[string]int{"a": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}}
|
||
|
)
|
||
|
|
||
|
func request_FlowCombination_RpcBodyStream_6(ctx context.Context, marshaler runtime.Marshaler, client FlowCombinationClient, req *http.Request, pathParams map[string]string) (FlowCombination_RpcBodyStreamClient, runtime.ServerMetadata, error) {
|
||
|
var protoReq NonEmptyProto
|
||
|
var metadata runtime.ServerMetadata
|
||
|
|
||
|
var (
|
||
|
val string
|
||
|
ok bool
|
||
|
err error
|
||
|
_ = err
|
||
|
)
|
||
|
|
||
|
val, ok = pathParams["a"]
|
||
|
if !ok {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "a")
|
||
|
}
|
||
|
|
||
|
protoReq.A, err = runtime.String(val)
|
||
|
|
||
|
if err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "a", err)
|
||
|
}
|
||
|
|
||
|
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_FlowCombination_RpcBodyStream_6); err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||
|
}
|
||
|
|
||
|
stream, err := client.RpcBodyStream(ctx, &protoReq)
|
||
|
if err != nil {
|
||
|
return nil, metadata, err
|
||
|
}
|
||
|
header, err := stream.Header()
|
||
|
if err != nil {
|
||
|
return nil, metadata, err
|
||
|
}
|
||
|
metadata.HeaderMD = header
|
||
|
return stream, metadata, nil
|
||
|
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
filter_FlowCombination_RpcPathSingleNestedStream_0 = &utilities.DoubleArray{Encoding: map[string]int{"a": 0, "str": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}}
|
||
|
)
|
||
|
|
||
|
func request_FlowCombination_RpcPathSingleNestedStream_0(ctx context.Context, marshaler runtime.Marshaler, client FlowCombinationClient, req *http.Request, pathParams map[string]string) (FlowCombination_RpcPathSingleNestedStreamClient, runtime.ServerMetadata, error) {
|
||
|
var protoReq SingleNestedProto
|
||
|
var metadata runtime.ServerMetadata
|
||
|
|
||
|
var (
|
||
|
val string
|
||
|
ok bool
|
||
|
err error
|
||
|
_ = err
|
||
|
)
|
||
|
|
||
|
val, ok = pathParams["a.str"]
|
||
|
if !ok {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "a.str")
|
||
|
}
|
||
|
|
||
|
err = runtime.PopulateFieldFromPath(&protoReq, "a.str", val)
|
||
|
|
||
|
if err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "a.str", err)
|
||
|
}
|
||
|
|
||
|
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_FlowCombination_RpcPathSingleNestedStream_0); err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||
|
}
|
||
|
|
||
|
stream, err := client.RpcPathSingleNestedStream(ctx, &protoReq)
|
||
|
if err != nil {
|
||
|
return nil, metadata, err
|
||
|
}
|
||
|
header, err := stream.Header()
|
||
|
if err != nil {
|
||
|
return nil, metadata, err
|
||
|
}
|
||
|
metadata.HeaderMD = header
|
||
|
return stream, metadata, nil
|
||
|
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
filter_FlowCombination_RpcPathNestedStream_0 = &utilities.DoubleArray{Encoding: map[string]int{"c": 0, "a": 1, "str": 2, "b": 3}, Base: []int{1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 1, 3, 1, 2, 4, 5}}
|
||
|
)
|
||
|
|
||
|
func request_FlowCombination_RpcPathNestedStream_0(ctx context.Context, marshaler runtime.Marshaler, client FlowCombinationClient, req *http.Request, pathParams map[string]string) (FlowCombination_RpcPathNestedStreamClient, runtime.ServerMetadata, error) {
|
||
|
var protoReq NestedProto
|
||
|
var metadata runtime.ServerMetadata
|
||
|
|
||
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.C); err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
val string
|
||
|
ok bool
|
||
|
err error
|
||
|
_ = err
|
||
|
)
|
||
|
|
||
|
val, ok = pathParams["a.str"]
|
||
|
if !ok {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "a.str")
|
||
|
}
|
||
|
|
||
|
err = runtime.PopulateFieldFromPath(&protoReq, "a.str", val)
|
||
|
|
||
|
if err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "a.str", err)
|
||
|
}
|
||
|
|
||
|
val, ok = pathParams["b"]
|
||
|
if !ok {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "b")
|
||
|
}
|
||
|
|
||
|
protoReq.B, err = runtime.String(val)
|
||
|
|
||
|
if err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "b", err)
|
||
|
}
|
||
|
|
||
|
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_FlowCombination_RpcPathNestedStream_0); err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||
|
}
|
||
|
|
||
|
stream, err := client.RpcPathNestedStream(ctx, &protoReq)
|
||
|
if err != nil {
|
||
|
return nil, metadata, err
|
||
|
}
|
||
|
header, err := stream.Header()
|
||
|
if err != nil {
|
||
|
return nil, metadata, err
|
||
|
}
|
||
|
metadata.HeaderMD = header
|
||
|
return stream, metadata, nil
|
||
|
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
filter_FlowCombination_RpcPathNestedStream_1 = &utilities.DoubleArray{Encoding: map[string]int{"a": 0, "str": 1}, Base: []int{1, 1, 1, 0}, Check: []int{0, 1, 2, 3}}
|
||
|
)
|
||
|
|
||
|
func request_FlowCombination_RpcPathNestedStream_1(ctx context.Context, marshaler runtime.Marshaler, client FlowCombinationClient, req *http.Request, pathParams map[string]string) (FlowCombination_RpcPathNestedStreamClient, runtime.ServerMetadata, error) {
|
||
|
var protoReq NestedProto
|
||
|
var metadata runtime.ServerMetadata
|
||
|
|
||
|
var (
|
||
|
val string
|
||
|
ok bool
|
||
|
err error
|
||
|
_ = err
|
||
|
)
|
||
|
|
||
|
val, ok = pathParams["a.str"]
|
||
|
if !ok {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "a.str")
|
||
|
}
|
||
|
|
||
|
err = runtime.PopulateFieldFromPath(&protoReq, "a.str", val)
|
||
|
|
||
|
if err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "a.str", err)
|
||
|
}
|
||
|
|
||
|
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_FlowCombination_RpcPathNestedStream_1); err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||
|
}
|
||
|
|
||
|
stream, err := client.RpcPathNestedStream(ctx, &protoReq)
|
||
|
if err != nil {
|
||
|
return nil, metadata, err
|
||
|
}
|
||
|
header, err := stream.Header()
|
||
|
if err != nil {
|
||
|
return nil, metadata, err
|
||
|
}
|
||
|
metadata.HeaderMD = header
|
||
|
return stream, metadata, nil
|
||
|
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
filter_FlowCombination_RpcPathNestedStream_2 = &utilities.DoubleArray{Encoding: map[string]int{"c": 0, "a": 1, "str": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 3, 2, 4}}
|
||
|
)
|
||
|
|
||
|
func request_FlowCombination_RpcPathNestedStream_2(ctx context.Context, marshaler runtime.Marshaler, client FlowCombinationClient, req *http.Request, pathParams map[string]string) (FlowCombination_RpcPathNestedStreamClient, runtime.ServerMetadata, error) {
|
||
|
var protoReq NestedProto
|
||
|
var metadata runtime.ServerMetadata
|
||
|
|
||
|
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.C); err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
val string
|
||
|
ok bool
|
||
|
err error
|
||
|
_ = err
|
||
|
)
|
||
|
|
||
|
val, ok = pathParams["a.str"]
|
||
|
if !ok {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "a.str")
|
||
|
}
|
||
|
|
||
|
err = runtime.PopulateFieldFromPath(&protoReq, "a.str", val)
|
||
|
|
||
|
if err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "a.str", err)
|
||
|
}
|
||
|
|
||
|
if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_FlowCombination_RpcPathNestedStream_2); err != nil {
|
||
|
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
|
||
|
}
|
||
|
|
||
|
stream, err := client.RpcPathNestedStream(ctx, &protoReq)
|
||
|
if err != nil {
|
||
|
return nil, metadata, err
|
||
|
}
|
||
|
header, err := stream.Header()
|
||
|
if err != nil {
|
||
|
return nil, metadata, err
|
||
|
}
|
||
|
metadata.HeaderMD = header
|
||
|
return stream, metadata, nil
|
||
|
|
||
|
}
|
||
|
|
||
|
// RegisterFlowCombinationHandlerFromEndpoint is same as RegisterFlowCombinationHandler but
|
||
|
// automatically dials to "endpoint" and closes the connection when "ctx" gets done.
|
||
|
func RegisterFlowCombinationHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) {
|
||
|
conn, err := grpc.Dial(endpoint, opts...)
|
||
|
if err != nil {
|
||
|
return err
|
||
|
}
|
||
|
defer func() {
|
||
|
if err != nil {
|
||
|
if cerr := conn.Close(); cerr != nil {
|
||
|
grpclog.Printf("Failed to close conn to %s: %v", endpoint, cerr)
|
||
|
}
|
||
|
return
|
||
|
}
|
||
|
go func() {
|
||
|
<-ctx.Done()
|
||
|
if cerr := conn.Close(); cerr != nil {
|
||
|
grpclog.Printf("Failed to close conn to %s: %v", endpoint, cerr)
|
||
|
}
|
||
|
}()
|
||
|
}()
|
||
|
|
||
|
return RegisterFlowCombinationHandler(ctx, mux, conn)
|
||
|
}
|
||
|
|
||
|
// RegisterFlowCombinationHandler registers the http handlers for service FlowCombination to "mux".
|
||
|
// The handlers forward requests to the grpc endpoint over "conn".
|
||
|
func RegisterFlowCombinationHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error {
|
||
|
client := NewFlowCombinationClient(conn)
|
||
|
|
||
|
mux.Handle("POST", pattern_FlowCombination_RpcEmptyRpc_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||
|
ctx, cancel := context.WithCancel(ctx)
|
||
|
defer cancel()
|
||
|
if cn, ok := w.(http.CloseNotifier); ok {
|
||
|
go func(done <-chan struct{}, closed <-chan bool) {
|
||
|
select {
|
||
|
case <-done:
|
||
|
case <-closed:
|
||
|
cancel()
|
||
|
}
|
||
|
}(ctx.Done(), cn.CloseNotify())
|
||
|
}
|
||
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
resp, md, err := request_FlowCombination_RpcEmptyRpc_0(rctx, inboundMarshaler, client, req, pathParams)
|
||
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
|
||
|
forward_FlowCombination_RpcEmptyRpc_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
||
|
|
||
|
})
|
||
|
|
||
|
mux.Handle("POST", pattern_FlowCombination_RpcEmptyStream_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||
|
ctx, cancel := context.WithCancel(ctx)
|
||
|
defer cancel()
|
||
|
if cn, ok := w.(http.CloseNotifier); ok {
|
||
|
go func(done <-chan struct{}, closed <-chan bool) {
|
||
|
select {
|
||
|
case <-done:
|
||
|
case <-closed:
|
||
|
cancel()
|
||
|
}
|
||
|
}(ctx.Done(), cn.CloseNotify())
|
||
|
}
|
||
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
resp, md, err := request_FlowCombination_RpcEmptyStream_0(rctx, inboundMarshaler, client, req, pathParams)
|
||
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
|
||
|
forward_FlowCombination_RpcEmptyStream_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...)
|
||
|
|
||
|
})
|
||
|
|
||
|
mux.Handle("POST", pattern_FlowCombination_StreamEmptyRpc_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||
|
ctx, cancel := context.WithCancel(ctx)
|
||
|
defer cancel()
|
||
|
if cn, ok := w.(http.CloseNotifier); ok {
|
||
|
go func(done <-chan struct{}, closed <-chan bool) {
|
||
|
select {
|
||
|
case <-done:
|
||
|
case <-closed:
|
||
|
cancel()
|
||
|
}
|
||
|
}(ctx.Done(), cn.CloseNotify())
|
||
|
}
|
||
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
resp, md, err := request_FlowCombination_StreamEmptyRpc_0(rctx, inboundMarshaler, client, req, pathParams)
|
||
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
|
||
|
forward_FlowCombination_StreamEmptyRpc_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
||
|
|
||
|
})
|
||
|
|
||
|
mux.Handle("POST", pattern_FlowCombination_StreamEmptyStream_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||
|
ctx, cancel := context.WithCancel(ctx)
|
||
|
defer cancel()
|
||
|
if cn, ok := w.(http.CloseNotifier); ok {
|
||
|
go func(done <-chan struct{}, closed <-chan bool) {
|
||
|
select {
|
||
|
case <-done:
|
||
|
case <-closed:
|
||
|
cancel()
|
||
|
}
|
||
|
}(ctx.Done(), cn.CloseNotify())
|
||
|
}
|
||
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
resp, md, err := request_FlowCombination_StreamEmptyStream_0(rctx, inboundMarshaler, client, req, pathParams)
|
||
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
|
||
|
forward_FlowCombination_StreamEmptyStream_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...)
|
||
|
|
||
|
})
|
||
|
|
||
|
mux.Handle("POST", pattern_FlowCombination_RpcBodyRpc_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||
|
ctx, cancel := context.WithCancel(ctx)
|
||
|
defer cancel()
|
||
|
if cn, ok := w.(http.CloseNotifier); ok {
|
||
|
go func(done <-chan struct{}, closed <-chan bool) {
|
||
|
select {
|
||
|
case <-done:
|
||
|
case <-closed:
|
||
|
cancel()
|
||
|
}
|
||
|
}(ctx.Done(), cn.CloseNotify())
|
||
|
}
|
||
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
resp, md, err := request_FlowCombination_RpcBodyRpc_0(rctx, inboundMarshaler, client, req, pathParams)
|
||
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
|
||
|
forward_FlowCombination_RpcBodyRpc_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
||
|
|
||
|
})
|
||
|
|
||
|
mux.Handle("POST", pattern_FlowCombination_RpcBodyRpc_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||
|
ctx, cancel := context.WithCancel(ctx)
|
||
|
defer cancel()
|
||
|
if cn, ok := w.(http.CloseNotifier); ok {
|
||
|
go func(done <-chan struct{}, closed <-chan bool) {
|
||
|
select {
|
||
|
case <-done:
|
||
|
case <-closed:
|
||
|
cancel()
|
||
|
}
|
||
|
}(ctx.Done(), cn.CloseNotify())
|
||
|
}
|
||
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
resp, md, err := request_FlowCombination_RpcBodyRpc_1(rctx, inboundMarshaler, client, req, pathParams)
|
||
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
|
||
|
forward_FlowCombination_RpcBodyRpc_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
||
|
|
||
|
})
|
||
|
|
||
|
mux.Handle("POST", pattern_FlowCombination_RpcBodyRpc_2, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||
|
ctx, cancel := context.WithCancel(ctx)
|
||
|
defer cancel()
|
||
|
if cn, ok := w.(http.CloseNotifier); ok {
|
||
|
go func(done <-chan struct{}, closed <-chan bool) {
|
||
|
select {
|
||
|
case <-done:
|
||
|
case <-closed:
|
||
|
cancel()
|
||
|
}
|
||
|
}(ctx.Done(), cn.CloseNotify())
|
||
|
}
|
||
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
resp, md, err := request_FlowCombination_RpcBodyRpc_2(rctx, inboundMarshaler, client, req, pathParams)
|
||
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
|
||
|
forward_FlowCombination_RpcBodyRpc_2(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
||
|
|
||
|
})
|
||
|
|
||
|
mux.Handle("POST", pattern_FlowCombination_RpcBodyRpc_3, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||
|
ctx, cancel := context.WithCancel(ctx)
|
||
|
defer cancel()
|
||
|
if cn, ok := w.(http.CloseNotifier); ok {
|
||
|
go func(done <-chan struct{}, closed <-chan bool) {
|
||
|
select {
|
||
|
case <-done:
|
||
|
case <-closed:
|
||
|
cancel()
|
||
|
}
|
||
|
}(ctx.Done(), cn.CloseNotify())
|
||
|
}
|
||
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
resp, md, err := request_FlowCombination_RpcBodyRpc_3(rctx, inboundMarshaler, client, req, pathParams)
|
||
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
|
||
|
forward_FlowCombination_RpcBodyRpc_3(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
||
|
|
||
|
})
|
||
|
|
||
|
mux.Handle("POST", pattern_FlowCombination_RpcBodyRpc_4, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||
|
ctx, cancel := context.WithCancel(ctx)
|
||
|
defer cancel()
|
||
|
if cn, ok := w.(http.CloseNotifier); ok {
|
||
|
go func(done <-chan struct{}, closed <-chan bool) {
|
||
|
select {
|
||
|
case <-done:
|
||
|
case <-closed:
|
||
|
cancel()
|
||
|
}
|
||
|
}(ctx.Done(), cn.CloseNotify())
|
||
|
}
|
||
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
resp, md, err := request_FlowCombination_RpcBodyRpc_4(rctx, inboundMarshaler, client, req, pathParams)
|
||
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
|
||
|
forward_FlowCombination_RpcBodyRpc_4(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
||
|
|
||
|
})
|
||
|
|
||
|
mux.Handle("POST", pattern_FlowCombination_RpcBodyRpc_5, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||
|
ctx, cancel := context.WithCancel(ctx)
|
||
|
defer cancel()
|
||
|
if cn, ok := w.(http.CloseNotifier); ok {
|
||
|
go func(done <-chan struct{}, closed <-chan bool) {
|
||
|
select {
|
||
|
case <-done:
|
||
|
case <-closed:
|
||
|
cancel()
|
||
|
}
|
||
|
}(ctx.Done(), cn.CloseNotify())
|
||
|
}
|
||
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
resp, md, err := request_FlowCombination_RpcBodyRpc_5(rctx, inboundMarshaler, client, req, pathParams)
|
||
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
|
||
|
forward_FlowCombination_RpcBodyRpc_5(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
||
|
|
||
|
})
|
||
|
|
||
|
mux.Handle("POST", pattern_FlowCombination_RpcBodyRpc_6, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||
|
ctx, cancel := context.WithCancel(ctx)
|
||
|
defer cancel()
|
||
|
if cn, ok := w.(http.CloseNotifier); ok {
|
||
|
go func(done <-chan struct{}, closed <-chan bool) {
|
||
|
select {
|
||
|
case <-done:
|
||
|
case <-closed:
|
||
|
cancel()
|
||
|
}
|
||
|
}(ctx.Done(), cn.CloseNotify())
|
||
|
}
|
||
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
resp, md, err := request_FlowCombination_RpcBodyRpc_6(rctx, inboundMarshaler, client, req, pathParams)
|
||
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
|
||
|
forward_FlowCombination_RpcBodyRpc_6(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
||
|
|
||
|
})
|
||
|
|
||
|
mux.Handle("POST", pattern_FlowCombination_RpcPathSingleNestedRpc_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||
|
ctx, cancel := context.WithCancel(ctx)
|
||
|
defer cancel()
|
||
|
if cn, ok := w.(http.CloseNotifier); ok {
|
||
|
go func(done <-chan struct{}, closed <-chan bool) {
|
||
|
select {
|
||
|
case <-done:
|
||
|
case <-closed:
|
||
|
cancel()
|
||
|
}
|
||
|
}(ctx.Done(), cn.CloseNotify())
|
||
|
}
|
||
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
resp, md, err := request_FlowCombination_RpcPathSingleNestedRpc_0(rctx, inboundMarshaler, client, req, pathParams)
|
||
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
|
||
|
forward_FlowCombination_RpcPathSingleNestedRpc_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
||
|
|
||
|
})
|
||
|
|
||
|
mux.Handle("POST", pattern_FlowCombination_RpcPathNestedRpc_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||
|
ctx, cancel := context.WithCancel(ctx)
|
||
|
defer cancel()
|
||
|
if cn, ok := w.(http.CloseNotifier); ok {
|
||
|
go func(done <-chan struct{}, closed <-chan bool) {
|
||
|
select {
|
||
|
case <-done:
|
||
|
case <-closed:
|
||
|
cancel()
|
||
|
}
|
||
|
}(ctx.Done(), cn.CloseNotify())
|
||
|
}
|
||
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
resp, md, err := request_FlowCombination_RpcPathNestedRpc_0(rctx, inboundMarshaler, client, req, pathParams)
|
||
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
|
||
|
forward_FlowCombination_RpcPathNestedRpc_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
||
|
|
||
|
})
|
||
|
|
||
|
mux.Handle("POST", pattern_FlowCombination_RpcPathNestedRpc_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||
|
ctx, cancel := context.WithCancel(ctx)
|
||
|
defer cancel()
|
||
|
if cn, ok := w.(http.CloseNotifier); ok {
|
||
|
go func(done <-chan struct{}, closed <-chan bool) {
|
||
|
select {
|
||
|
case <-done:
|
||
|
case <-closed:
|
||
|
cancel()
|
||
|
}
|
||
|
}(ctx.Done(), cn.CloseNotify())
|
||
|
}
|
||
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
resp, md, err := request_FlowCombination_RpcPathNestedRpc_1(rctx, inboundMarshaler, client, req, pathParams)
|
||
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
|
||
|
forward_FlowCombination_RpcPathNestedRpc_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
||
|
|
||
|
})
|
||
|
|
||
|
mux.Handle("POST", pattern_FlowCombination_RpcPathNestedRpc_2, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||
|
ctx, cancel := context.WithCancel(ctx)
|
||
|
defer cancel()
|
||
|
if cn, ok := w.(http.CloseNotifier); ok {
|
||
|
go func(done <-chan struct{}, closed <-chan bool) {
|
||
|
select {
|
||
|
case <-done:
|
||
|
case <-closed:
|
||
|
cancel()
|
||
|
}
|
||
|
}(ctx.Done(), cn.CloseNotify())
|
||
|
}
|
||
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
resp, md, err := request_FlowCombination_RpcPathNestedRpc_2(rctx, inboundMarshaler, client, req, pathParams)
|
||
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
|
||
|
forward_FlowCombination_RpcPathNestedRpc_2(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
|
||
|
|
||
|
})
|
||
|
|
||
|
mux.Handle("POST", pattern_FlowCombination_RpcBodyStream_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||
|
ctx, cancel := context.WithCancel(ctx)
|
||
|
defer cancel()
|
||
|
if cn, ok := w.(http.CloseNotifier); ok {
|
||
|
go func(done <-chan struct{}, closed <-chan bool) {
|
||
|
select {
|
||
|
case <-done:
|
||
|
case <-closed:
|
||
|
cancel()
|
||
|
}
|
||
|
}(ctx.Done(), cn.CloseNotify())
|
||
|
}
|
||
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
resp, md, err := request_FlowCombination_RpcBodyStream_0(rctx, inboundMarshaler, client, req, pathParams)
|
||
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
|
||
|
forward_FlowCombination_RpcBodyStream_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...)
|
||
|
|
||
|
})
|
||
|
|
||
|
mux.Handle("POST", pattern_FlowCombination_RpcBodyStream_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||
|
ctx, cancel := context.WithCancel(ctx)
|
||
|
defer cancel()
|
||
|
if cn, ok := w.(http.CloseNotifier); ok {
|
||
|
go func(done <-chan struct{}, closed <-chan bool) {
|
||
|
select {
|
||
|
case <-done:
|
||
|
case <-closed:
|
||
|
cancel()
|
||
|
}
|
||
|
}(ctx.Done(), cn.CloseNotify())
|
||
|
}
|
||
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
resp, md, err := request_FlowCombination_RpcBodyStream_1(rctx, inboundMarshaler, client, req, pathParams)
|
||
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
|
||
|
forward_FlowCombination_RpcBodyStream_1(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...)
|
||
|
|
||
|
})
|
||
|
|
||
|
mux.Handle("POST", pattern_FlowCombination_RpcBodyStream_2, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||
|
ctx, cancel := context.WithCancel(ctx)
|
||
|
defer cancel()
|
||
|
if cn, ok := w.(http.CloseNotifier); ok {
|
||
|
go func(done <-chan struct{}, closed <-chan bool) {
|
||
|
select {
|
||
|
case <-done:
|
||
|
case <-closed:
|
||
|
cancel()
|
||
|
}
|
||
|
}(ctx.Done(), cn.CloseNotify())
|
||
|
}
|
||
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
resp, md, err := request_FlowCombination_RpcBodyStream_2(rctx, inboundMarshaler, client, req, pathParams)
|
||
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
|
||
|
forward_FlowCombination_RpcBodyStream_2(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...)
|
||
|
|
||
|
})
|
||
|
|
||
|
mux.Handle("POST", pattern_FlowCombination_RpcBodyStream_3, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||
|
ctx, cancel := context.WithCancel(ctx)
|
||
|
defer cancel()
|
||
|
if cn, ok := w.(http.CloseNotifier); ok {
|
||
|
go func(done <-chan struct{}, closed <-chan bool) {
|
||
|
select {
|
||
|
case <-done:
|
||
|
case <-closed:
|
||
|
cancel()
|
||
|
}
|
||
|
}(ctx.Done(), cn.CloseNotify())
|
||
|
}
|
||
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
resp, md, err := request_FlowCombination_RpcBodyStream_3(rctx, inboundMarshaler, client, req, pathParams)
|
||
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
|
||
|
forward_FlowCombination_RpcBodyStream_3(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...)
|
||
|
|
||
|
})
|
||
|
|
||
|
mux.Handle("POST", pattern_FlowCombination_RpcBodyStream_4, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||
|
ctx, cancel := context.WithCancel(ctx)
|
||
|
defer cancel()
|
||
|
if cn, ok := w.(http.CloseNotifier); ok {
|
||
|
go func(done <-chan struct{}, closed <-chan bool) {
|
||
|
select {
|
||
|
case <-done:
|
||
|
case <-closed:
|
||
|
cancel()
|
||
|
}
|
||
|
}(ctx.Done(), cn.CloseNotify())
|
||
|
}
|
||
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
resp, md, err := request_FlowCombination_RpcBodyStream_4(rctx, inboundMarshaler, client, req, pathParams)
|
||
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
|
||
|
forward_FlowCombination_RpcBodyStream_4(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...)
|
||
|
|
||
|
})
|
||
|
|
||
|
mux.Handle("POST", pattern_FlowCombination_RpcBodyStream_5, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||
|
ctx, cancel := context.WithCancel(ctx)
|
||
|
defer cancel()
|
||
|
if cn, ok := w.(http.CloseNotifier); ok {
|
||
|
go func(done <-chan struct{}, closed <-chan bool) {
|
||
|
select {
|
||
|
case <-done:
|
||
|
case <-closed:
|
||
|
cancel()
|
||
|
}
|
||
|
}(ctx.Done(), cn.CloseNotify())
|
||
|
}
|
||
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
resp, md, err := request_FlowCombination_RpcBodyStream_5(rctx, inboundMarshaler, client, req, pathParams)
|
||
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
|
||
|
forward_FlowCombination_RpcBodyStream_5(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...)
|
||
|
|
||
|
})
|
||
|
|
||
|
mux.Handle("POST", pattern_FlowCombination_RpcBodyStream_6, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||
|
ctx, cancel := context.WithCancel(ctx)
|
||
|
defer cancel()
|
||
|
if cn, ok := w.(http.CloseNotifier); ok {
|
||
|
go func(done <-chan struct{}, closed <-chan bool) {
|
||
|
select {
|
||
|
case <-done:
|
||
|
case <-closed:
|
||
|
cancel()
|
||
|
}
|
||
|
}(ctx.Done(), cn.CloseNotify())
|
||
|
}
|
||
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
resp, md, err := request_FlowCombination_RpcBodyStream_6(rctx, inboundMarshaler, client, req, pathParams)
|
||
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
|
||
|
forward_FlowCombination_RpcBodyStream_6(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...)
|
||
|
|
||
|
})
|
||
|
|
||
|
mux.Handle("POST", pattern_FlowCombination_RpcPathSingleNestedStream_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||
|
ctx, cancel := context.WithCancel(ctx)
|
||
|
defer cancel()
|
||
|
if cn, ok := w.(http.CloseNotifier); ok {
|
||
|
go func(done <-chan struct{}, closed <-chan bool) {
|
||
|
select {
|
||
|
case <-done:
|
||
|
case <-closed:
|
||
|
cancel()
|
||
|
}
|
||
|
}(ctx.Done(), cn.CloseNotify())
|
||
|
}
|
||
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
resp, md, err := request_FlowCombination_RpcPathSingleNestedStream_0(rctx, inboundMarshaler, client, req, pathParams)
|
||
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
|
||
|
forward_FlowCombination_RpcPathSingleNestedStream_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...)
|
||
|
|
||
|
})
|
||
|
|
||
|
mux.Handle("POST", pattern_FlowCombination_RpcPathNestedStream_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||
|
ctx, cancel := context.WithCancel(ctx)
|
||
|
defer cancel()
|
||
|
if cn, ok := w.(http.CloseNotifier); ok {
|
||
|
go func(done <-chan struct{}, closed <-chan bool) {
|
||
|
select {
|
||
|
case <-done:
|
||
|
case <-closed:
|
||
|
cancel()
|
||
|
}
|
||
|
}(ctx.Done(), cn.CloseNotify())
|
||
|
}
|
||
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
resp, md, err := request_FlowCombination_RpcPathNestedStream_0(rctx, inboundMarshaler, client, req, pathParams)
|
||
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
|
||
|
forward_FlowCombination_RpcPathNestedStream_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...)
|
||
|
|
||
|
})
|
||
|
|
||
|
mux.Handle("POST", pattern_FlowCombination_RpcPathNestedStream_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||
|
ctx, cancel := context.WithCancel(ctx)
|
||
|
defer cancel()
|
||
|
if cn, ok := w.(http.CloseNotifier); ok {
|
||
|
go func(done <-chan struct{}, closed <-chan bool) {
|
||
|
select {
|
||
|
case <-done:
|
||
|
case <-closed:
|
||
|
cancel()
|
||
|
}
|
||
|
}(ctx.Done(), cn.CloseNotify())
|
||
|
}
|
||
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
resp, md, err := request_FlowCombination_RpcPathNestedStream_1(rctx, inboundMarshaler, client, req, pathParams)
|
||
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
|
||
|
forward_FlowCombination_RpcPathNestedStream_1(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...)
|
||
|
|
||
|
})
|
||
|
|
||
|
mux.Handle("POST", pattern_FlowCombination_RpcPathNestedStream_2, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
|
||
|
ctx, cancel := context.WithCancel(ctx)
|
||
|
defer cancel()
|
||
|
if cn, ok := w.(http.CloseNotifier); ok {
|
||
|
go func(done <-chan struct{}, closed <-chan bool) {
|
||
|
select {
|
||
|
case <-done:
|
||
|
case <-closed:
|
||
|
cancel()
|
||
|
}
|
||
|
}(ctx.Done(), cn.CloseNotify())
|
||
|
}
|
||
|
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
|
||
|
rctx, err := runtime.AnnotateContext(ctx, mux, req)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
resp, md, err := request_FlowCombination_RpcPathNestedStream_2(rctx, inboundMarshaler, client, req, pathParams)
|
||
|
ctx = runtime.NewServerMetadataContext(ctx, md)
|
||
|
if err != nil {
|
||
|
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
|
||
|
return
|
||
|
}
|
||
|
|
||
|
forward_FlowCombination_RpcPathNestedStream_2(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...)
|
||
|
|
||
|
})
|
||
|
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
var (
|
||
|
pattern_FlowCombination_RpcEmptyRpc_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 0}, []string{"rpc", "empty"}, ""))
|
||
|
|
||
|
pattern_FlowCombination_RpcEmptyStream_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"rpc", "empty", "stream"}, ""))
|
||
|
|
||
|
pattern_FlowCombination_StreamEmptyRpc_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"stream", "empty", "rpc"}, ""))
|
||
|
|
||
|
pattern_FlowCombination_StreamEmptyStream_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 0}, []string{"stream", "empty"}, ""))
|
||
|
|
||
|
pattern_FlowCombination_RpcBodyRpc_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 0}, []string{"rpc", "body"}, ""))
|
||
|
|
||
|
pattern_FlowCombination_RpcBodyRpc_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 2, 0}, []string{"rpc", "path", "a", "b", "c"}, ""))
|
||
|
|
||
|
pattern_FlowCombination_RpcBodyRpc_2 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 0}, []string{"rpc", "query"}, ""))
|
||
|
|
||
|
pattern_FlowCombination_RpcBodyRpc_3 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 2, 0}, []string{"rpc", "body", "path", "a", "b"}, ""))
|
||
|
|
||
|
pattern_FlowCombination_RpcBodyRpc_4 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 0}, []string{"rpc", "body", "query"}, ""))
|
||
|
|
||
|
pattern_FlowCombination_RpcBodyRpc_5 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 2, 0}, []string{"rpc", "body", "path", "a", "query"}, ""))
|
||
|
|
||
|
pattern_FlowCombination_RpcBodyRpc_6 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 2, 0}, []string{"rpc", "path", "a", "query"}, ""))
|
||
|
|
||
|
pattern_FlowCombination_RpcPathSingleNestedRpc_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 0}, []string{"rpc", "path-nested", "a.str"}, ""))
|
||
|
|
||
|
pattern_FlowCombination_RpcPathNestedRpc_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 1, 0, 4, 1, 5, 3, 2, 0}, []string{"rpc", "path-nested", "a.str", "b"}, ""))
|
||
|
|
||
|
pattern_FlowCombination_RpcPathNestedRpc_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 0}, []string{"rpc", "path-nested", "a.str"}, ""))
|
||
|
|
||
|
pattern_FlowCombination_RpcPathNestedRpc_2 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 0}, []string{"rpc", "path-nested", "a.str"}, ""))
|
||
|
|
||
|
pattern_FlowCombination_RpcBodyStream_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"rpc", "body", "stream"}, ""))
|
||
|
|
||
|
pattern_FlowCombination_RpcBodyStream_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"rpc", "path", "a", "b", "c", "stream"}, ""))
|
||
|
|
||
|
pattern_FlowCombination_RpcBodyStream_2 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"rpc", "query", "stream"}, ""))
|
||
|
|
||
|
pattern_FlowCombination_RpcBodyStream_3 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 2, 5}, []string{"rpc", "body", "path", "a", "b", "stream"}, ""))
|
||
|
|
||
|
pattern_FlowCombination_RpcBodyStream_4 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"rpc", "body", "query", "stream"}, ""))
|
||
|
|
||
|
pattern_FlowCombination_RpcBodyStream_5 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 2, 5}, []string{"rpc", "body", "path", "a", "query", "stream"}, ""))
|
||
|
|
||
|
pattern_FlowCombination_RpcBodyStream_6 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3, 2, 4}, []string{"rpc", "path", "a", "query", "stream"}, ""))
|
||
|
|
||
|
pattern_FlowCombination_RpcPathSingleNestedStream_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"rpc", "path-nested", "a.str", "stream"}, ""))
|
||
|
|
||
|
pattern_FlowCombination_RpcPathNestedStream_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 1, 0, 4, 1, 5, 3, 2, 4}, []string{"rpc", "path-nested", "a.str", "b", "stream"}, ""))
|
||
|
|
||
|
pattern_FlowCombination_RpcPathNestedStream_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"rpc", "path-nested", "a.str", "stream"}, ""))
|
||
|
|
||
|
pattern_FlowCombination_RpcPathNestedStream_2 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 2, 3}, []string{"rpc", "path-nested", "a.str", "stream"}, ""))
|
||
|
)
|
||
|
|
||
|
var (
|
||
|
forward_FlowCombination_RpcEmptyRpc_0 = runtime.ForwardResponseMessage
|
||
|
|
||
|
forward_FlowCombination_RpcEmptyStream_0 = runtime.ForwardResponseStream
|
||
|
|
||
|
forward_FlowCombination_StreamEmptyRpc_0 = runtime.ForwardResponseMessage
|
||
|
|
||
|
forward_FlowCombination_StreamEmptyStream_0 = runtime.ForwardResponseStream
|
||
|
|
||
|
forward_FlowCombination_RpcBodyRpc_0 = runtime.ForwardResponseMessage
|
||
|
|
||
|
forward_FlowCombination_RpcBodyRpc_1 = runtime.ForwardResponseMessage
|
||
|
|
||
|
forward_FlowCombination_RpcBodyRpc_2 = runtime.ForwardResponseMessage
|
||
|
|
||
|
forward_FlowCombination_RpcBodyRpc_3 = runtime.ForwardResponseMessage
|
||
|
|
||
|
forward_FlowCombination_RpcBodyRpc_4 = runtime.ForwardResponseMessage
|
||
|
|
||
|
forward_FlowCombination_RpcBodyRpc_5 = runtime.ForwardResponseMessage
|
||
|
|
||
|
forward_FlowCombination_RpcBodyRpc_6 = runtime.ForwardResponseMessage
|
||
|
|
||
|
forward_FlowCombination_RpcPathSingleNestedRpc_0 = runtime.ForwardResponseMessage
|
||
|
|
||
|
forward_FlowCombination_RpcPathNestedRpc_0 = runtime.ForwardResponseMessage
|
||
|
|
||
|
forward_FlowCombination_RpcPathNestedRpc_1 = runtime.ForwardResponseMessage
|
||
|
|
||
|
forward_FlowCombination_RpcPathNestedRpc_2 = runtime.ForwardResponseMessage
|
||
|
|
||
|
forward_FlowCombination_RpcBodyStream_0 = runtime.ForwardResponseStream
|
||
|
|
||
|
forward_FlowCombination_RpcBodyStream_1 = runtime.ForwardResponseStream
|
||
|
|
||
|
forward_FlowCombination_RpcBodyStream_2 = runtime.ForwardResponseStream
|
||
|
|
||
|
forward_FlowCombination_RpcBodyStream_3 = runtime.ForwardResponseStream
|
||
|
|
||
|
forward_FlowCombination_RpcBodyStream_4 = runtime.ForwardResponseStream
|
||
|
|
||
|
forward_FlowCombination_RpcBodyStream_5 = runtime.ForwardResponseStream
|
||
|
|
||
|
forward_FlowCombination_RpcBodyStream_6 = runtime.ForwardResponseStream
|
||
|
|
||
|
forward_FlowCombination_RpcPathSingleNestedStream_0 = runtime.ForwardResponseStream
|
||
|
|
||
|
forward_FlowCombination_RpcPathNestedStream_0 = runtime.ForwardResponseStream
|
||
|
|
||
|
forward_FlowCombination_RpcPathNestedStream_1 = runtime.ForwardResponseStream
|
||
|
|
||
|
forward_FlowCombination_RpcPathNestedStream_2 = runtime.ForwardResponseStream
|
||
|
)
|