github.com/adoriasoft/tendermint@v0.34.0-dev1.0.20200722151356-96d84601a75a/abci/types/types.pb.gw.go (about)

     1  // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
     2  // source: tendermint/abci/types.proto
     3  
     4  /*
     5  Package types is a reverse proxy.
     6  
     7  It translates gRPC into RESTful JSON APIs.
     8  */
     9  package types
    10  
    11  import (
    12  	"context"
    13  	"io"
    14  	"net/http"
    15  
    16  	"github.com/golang/protobuf/descriptor"
    17  	"github.com/golang/protobuf/proto"
    18  	"github.com/grpc-ecosystem/grpc-gateway/runtime"
    19  	"github.com/grpc-ecosystem/grpc-gateway/utilities"
    20  	"google.golang.org/grpc"
    21  	"google.golang.org/grpc/codes"
    22  	"google.golang.org/grpc/grpclog"
    23  	"google.golang.org/grpc/status"
    24  )
    25  
    26  // Suppress "imported and not used" errors
    27  var _ codes.Code
    28  var _ io.Reader
    29  var _ status.Status
    30  var _ = runtime.String
    31  var _ = utilities.NewDoubleArray
    32  var _ = descriptor.ForMessage
    33  
    34  func request_ABCIApplication_DeliverTx_0(ctx context.Context, marshaler runtime.Marshaler, client ABCIApplicationClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
    35  	var protoReq RequestDeliverTx
    36  	var metadata runtime.ServerMetadata
    37  
    38  	newReader, berr := utilities.IOReaderFactory(req.Body)
    39  	if berr != nil {
    40  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
    41  	}
    42  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
    43  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
    44  	}
    45  
    46  	msg, err := client.DeliverTx(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
    47  	return msg, metadata, err
    48  
    49  }
    50  
    51  func local_request_ABCIApplication_DeliverTx_0(ctx context.Context, marshaler runtime.Marshaler, server ABCIApplicationServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
    52  	var protoReq RequestDeliverTx
    53  	var metadata runtime.ServerMetadata
    54  
    55  	newReader, berr := utilities.IOReaderFactory(req.Body)
    56  	if berr != nil {
    57  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
    58  	}
    59  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
    60  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
    61  	}
    62  
    63  	msg, err := server.DeliverTx(ctx, &protoReq)
    64  	return msg, metadata, err
    65  
    66  }
    67  
    68  func request_ABCIApplication_CheckTx_0(ctx context.Context, marshaler runtime.Marshaler, client ABCIApplicationClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
    69  	var protoReq RequestCheckTx
    70  	var metadata runtime.ServerMetadata
    71  
    72  	newReader, berr := utilities.IOReaderFactory(req.Body)
    73  	if berr != nil {
    74  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
    75  	}
    76  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
    77  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
    78  	}
    79  
    80  	msg, err := client.CheckTx(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
    81  	return msg, metadata, err
    82  
    83  }
    84  
    85  func local_request_ABCIApplication_CheckTx_0(ctx context.Context, marshaler runtime.Marshaler, server ABCIApplicationServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
    86  	var protoReq RequestCheckTx
    87  	var metadata runtime.ServerMetadata
    88  
    89  	newReader, berr := utilities.IOReaderFactory(req.Body)
    90  	if berr != nil {
    91  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
    92  	}
    93  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
    94  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
    95  	}
    96  
    97  	msg, err := server.CheckTx(ctx, &protoReq)
    98  	return msg, metadata, err
    99  
   100  }
   101  
   102  func request_ABCIApplication_Commit_0(ctx context.Context, marshaler runtime.Marshaler, client ABCIApplicationClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   103  	var protoReq RequestCommit
   104  	var metadata runtime.ServerMetadata
   105  
   106  	newReader, berr := utilities.IOReaderFactory(req.Body)
   107  	if berr != nil {
   108  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   109  	}
   110  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   111  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   112  	}
   113  
   114  	msg, err := client.Commit(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   115  	return msg, metadata, err
   116  
   117  }
   118  
   119  func local_request_ABCIApplication_Commit_0(ctx context.Context, marshaler runtime.Marshaler, server ABCIApplicationServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   120  	var protoReq RequestCommit
   121  	var metadata runtime.ServerMetadata
   122  
   123  	newReader, berr := utilities.IOReaderFactory(req.Body)
   124  	if berr != nil {
   125  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   126  	}
   127  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   128  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   129  	}
   130  
   131  	msg, err := server.Commit(ctx, &protoReq)
   132  	return msg, metadata, err
   133  
   134  }
   135  
   136  var (
   137  	filter_ABCIApplication_InitChain_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
   138  )
   139  
   140  func request_ABCIApplication_InitChain_0(ctx context.Context, marshaler runtime.Marshaler, client ABCIApplicationClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   141  	var protoReq RequestInitChain
   142  	var metadata runtime.ServerMetadata
   143  
   144  	if err := req.ParseForm(); err != nil {
   145  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   146  	}
   147  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ABCIApplication_InitChain_0); err != nil {
   148  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   149  	}
   150  
   151  	msg, err := client.InitChain(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   152  	return msg, metadata, err
   153  
   154  }
   155  
   156  func local_request_ABCIApplication_InitChain_0(ctx context.Context, marshaler runtime.Marshaler, server ABCIApplicationServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   157  	var protoReq RequestInitChain
   158  	var metadata runtime.ServerMetadata
   159  
   160  	if err := req.ParseForm(); err != nil {
   161  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   162  	}
   163  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ABCIApplication_InitChain_0); err != nil {
   164  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   165  	}
   166  
   167  	msg, err := server.InitChain(ctx, &protoReq)
   168  	return msg, metadata, err
   169  
   170  }
   171  
   172  func request_ABCIApplication_BeginBlock_0(ctx context.Context, marshaler runtime.Marshaler, client ABCIApplicationClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   173  	var protoReq RequestBeginBlock
   174  	var metadata runtime.ServerMetadata
   175  
   176  	newReader, berr := utilities.IOReaderFactory(req.Body)
   177  	if berr != nil {
   178  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   179  	}
   180  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   181  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   182  	}
   183  
   184  	msg, err := client.BeginBlock(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   185  	return msg, metadata, err
   186  
   187  }
   188  
   189  func local_request_ABCIApplication_BeginBlock_0(ctx context.Context, marshaler runtime.Marshaler, server ABCIApplicationServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   190  	var protoReq RequestBeginBlock
   191  	var metadata runtime.ServerMetadata
   192  
   193  	newReader, berr := utilities.IOReaderFactory(req.Body)
   194  	if berr != nil {
   195  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   196  	}
   197  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   198  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   199  	}
   200  
   201  	msg, err := server.BeginBlock(ctx, &protoReq)
   202  	return msg, metadata, err
   203  
   204  }
   205  
   206  func request_ABCIApplication_EndBlock_0(ctx context.Context, marshaler runtime.Marshaler, client ABCIApplicationClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   207  	var protoReq RequestEndBlock
   208  	var metadata runtime.ServerMetadata
   209  
   210  	newReader, berr := utilities.IOReaderFactory(req.Body)
   211  	if berr != nil {
   212  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   213  	}
   214  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   215  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   216  	}
   217  
   218  	msg, err := client.EndBlock(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   219  	return msg, metadata, err
   220  
   221  }
   222  
   223  func local_request_ABCIApplication_EndBlock_0(ctx context.Context, marshaler runtime.Marshaler, server ABCIApplicationServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   224  	var protoReq RequestEndBlock
   225  	var metadata runtime.ServerMetadata
   226  
   227  	newReader, berr := utilities.IOReaderFactory(req.Body)
   228  	if berr != nil {
   229  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   230  	}
   231  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   232  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   233  	}
   234  
   235  	msg, err := server.EndBlock(ctx, &protoReq)
   236  	return msg, metadata, err
   237  
   238  }
   239  
   240  // RegisterABCIApplicationHandlerServer registers the http handlers for service ABCIApplication to "mux".
   241  // UnaryRPC     :call ABCIApplicationServer directly.
   242  // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
   243  func RegisterABCIApplicationHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ABCIApplicationServer) error {
   244  
   245  	mux.Handle("POST", pattern_ABCIApplication_DeliverTx_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   246  		ctx, cancel := context.WithCancel(req.Context())
   247  		defer cancel()
   248  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   249  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
   250  		if err != nil {
   251  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   252  			return
   253  		}
   254  		resp, md, err := local_request_ABCIApplication_DeliverTx_0(rctx, inboundMarshaler, server, req, pathParams)
   255  		ctx = runtime.NewServerMetadataContext(ctx, md)
   256  		if err != nil {
   257  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   258  			return
   259  		}
   260  
   261  		forward_ABCIApplication_DeliverTx_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   262  
   263  	})
   264  
   265  	mux.Handle("POST", pattern_ABCIApplication_CheckTx_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   266  		ctx, cancel := context.WithCancel(req.Context())
   267  		defer cancel()
   268  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   269  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
   270  		if err != nil {
   271  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   272  			return
   273  		}
   274  		resp, md, err := local_request_ABCIApplication_CheckTx_0(rctx, inboundMarshaler, server, req, pathParams)
   275  		ctx = runtime.NewServerMetadataContext(ctx, md)
   276  		if err != nil {
   277  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   278  			return
   279  		}
   280  
   281  		forward_ABCIApplication_CheckTx_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   282  
   283  	})
   284  
   285  	mux.Handle("POST", pattern_ABCIApplication_Commit_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   286  		ctx, cancel := context.WithCancel(req.Context())
   287  		defer cancel()
   288  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   289  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
   290  		if err != nil {
   291  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   292  			return
   293  		}
   294  		resp, md, err := local_request_ABCIApplication_Commit_0(rctx, inboundMarshaler, server, req, pathParams)
   295  		ctx = runtime.NewServerMetadataContext(ctx, md)
   296  		if err != nil {
   297  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   298  			return
   299  		}
   300  
   301  		forward_ABCIApplication_Commit_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   302  
   303  	})
   304  
   305  	mux.Handle("GET", pattern_ABCIApplication_InitChain_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   306  		ctx, cancel := context.WithCancel(req.Context())
   307  		defer cancel()
   308  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   309  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
   310  		if err != nil {
   311  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   312  			return
   313  		}
   314  		resp, md, err := local_request_ABCIApplication_InitChain_0(rctx, inboundMarshaler, server, req, pathParams)
   315  		ctx = runtime.NewServerMetadataContext(ctx, md)
   316  		if err != nil {
   317  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   318  			return
   319  		}
   320  
   321  		forward_ABCIApplication_InitChain_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   322  
   323  	})
   324  
   325  	mux.Handle("POST", pattern_ABCIApplication_BeginBlock_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   326  		ctx, cancel := context.WithCancel(req.Context())
   327  		defer cancel()
   328  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   329  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
   330  		if err != nil {
   331  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   332  			return
   333  		}
   334  		resp, md, err := local_request_ABCIApplication_BeginBlock_0(rctx, inboundMarshaler, server, req, pathParams)
   335  		ctx = runtime.NewServerMetadataContext(ctx, md)
   336  		if err != nil {
   337  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   338  			return
   339  		}
   340  
   341  		forward_ABCIApplication_BeginBlock_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   342  
   343  	})
   344  
   345  	mux.Handle("POST", pattern_ABCIApplication_EndBlock_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   346  		ctx, cancel := context.WithCancel(req.Context())
   347  		defer cancel()
   348  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   349  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req)
   350  		if err != nil {
   351  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   352  			return
   353  		}
   354  		resp, md, err := local_request_ABCIApplication_EndBlock_0(rctx, inboundMarshaler, server, req, pathParams)
   355  		ctx = runtime.NewServerMetadataContext(ctx, md)
   356  		if err != nil {
   357  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   358  			return
   359  		}
   360  
   361  		forward_ABCIApplication_EndBlock_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   362  
   363  	})
   364  
   365  	return nil
   366  }
   367  
   368  // RegisterABCIApplicationHandlerFromEndpoint is same as RegisterABCIApplicationHandler but
   369  // automatically dials to "endpoint" and closes the connection when "ctx" gets done.
   370  func RegisterABCIApplicationHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) {
   371  	conn, err := grpc.Dial(endpoint, opts...)
   372  	if err != nil {
   373  		return err
   374  	}
   375  	defer func() {
   376  		if err != nil {
   377  			if cerr := conn.Close(); cerr != nil {
   378  				grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)
   379  			}
   380  			return
   381  		}
   382  		go func() {
   383  			<-ctx.Done()
   384  			if cerr := conn.Close(); cerr != nil {
   385  				grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)
   386  			}
   387  		}()
   388  	}()
   389  
   390  	return RegisterABCIApplicationHandler(ctx, mux, conn)
   391  }
   392  
   393  // RegisterABCIApplicationHandler registers the http handlers for service ABCIApplication to "mux".
   394  // The handlers forward requests to the grpc endpoint over "conn".
   395  func RegisterABCIApplicationHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error {
   396  	return RegisterABCIApplicationHandlerClient(ctx, mux, NewABCIApplicationClient(conn))
   397  }
   398  
   399  // RegisterABCIApplicationHandlerClient registers the http handlers for service ABCIApplication
   400  // to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ABCIApplicationClient".
   401  // Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ABCIApplicationClient"
   402  // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in
   403  // "ABCIApplicationClient" to call the correct interceptors.
   404  func RegisterABCIApplicationHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ABCIApplicationClient) error {
   405  
   406  	mux.Handle("POST", pattern_ABCIApplication_DeliverTx_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   407  		ctx, cancel := context.WithCancel(req.Context())
   408  		defer cancel()
   409  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   410  		rctx, err := runtime.AnnotateContext(ctx, mux, req)
   411  		if err != nil {
   412  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   413  			return
   414  		}
   415  		resp, md, err := request_ABCIApplication_DeliverTx_0(rctx, inboundMarshaler, client, req, pathParams)
   416  		ctx = runtime.NewServerMetadataContext(ctx, md)
   417  		if err != nil {
   418  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   419  			return
   420  		}
   421  
   422  		forward_ABCIApplication_DeliverTx_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   423  
   424  	})
   425  
   426  	mux.Handle("POST", pattern_ABCIApplication_CheckTx_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   427  		ctx, cancel := context.WithCancel(req.Context())
   428  		defer cancel()
   429  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   430  		rctx, err := runtime.AnnotateContext(ctx, mux, req)
   431  		if err != nil {
   432  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   433  			return
   434  		}
   435  		resp, md, err := request_ABCIApplication_CheckTx_0(rctx, inboundMarshaler, client, req, pathParams)
   436  		ctx = runtime.NewServerMetadataContext(ctx, md)
   437  		if err != nil {
   438  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   439  			return
   440  		}
   441  
   442  		forward_ABCIApplication_CheckTx_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   443  
   444  	})
   445  
   446  	mux.Handle("POST", pattern_ABCIApplication_Commit_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   447  		ctx, cancel := context.WithCancel(req.Context())
   448  		defer cancel()
   449  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   450  		rctx, err := runtime.AnnotateContext(ctx, mux, req)
   451  		if err != nil {
   452  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   453  			return
   454  		}
   455  		resp, md, err := request_ABCIApplication_Commit_0(rctx, inboundMarshaler, client, req, pathParams)
   456  		ctx = runtime.NewServerMetadataContext(ctx, md)
   457  		if err != nil {
   458  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   459  			return
   460  		}
   461  
   462  		forward_ABCIApplication_Commit_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   463  
   464  	})
   465  
   466  	mux.Handle("GET", pattern_ABCIApplication_InitChain_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   467  		ctx, cancel := context.WithCancel(req.Context())
   468  		defer cancel()
   469  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   470  		rctx, err := runtime.AnnotateContext(ctx, mux, req)
   471  		if err != nil {
   472  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   473  			return
   474  		}
   475  		resp, md, err := request_ABCIApplication_InitChain_0(rctx, inboundMarshaler, client, req, pathParams)
   476  		ctx = runtime.NewServerMetadataContext(ctx, md)
   477  		if err != nil {
   478  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   479  			return
   480  		}
   481  
   482  		forward_ABCIApplication_InitChain_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   483  
   484  	})
   485  
   486  	mux.Handle("POST", pattern_ABCIApplication_BeginBlock_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   487  		ctx, cancel := context.WithCancel(req.Context())
   488  		defer cancel()
   489  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   490  		rctx, err := runtime.AnnotateContext(ctx, mux, req)
   491  		if err != nil {
   492  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   493  			return
   494  		}
   495  		resp, md, err := request_ABCIApplication_BeginBlock_0(rctx, inboundMarshaler, client, req, pathParams)
   496  		ctx = runtime.NewServerMetadataContext(ctx, md)
   497  		if err != nil {
   498  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   499  			return
   500  		}
   501  
   502  		forward_ABCIApplication_BeginBlock_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   503  
   504  	})
   505  
   506  	mux.Handle("POST", pattern_ABCIApplication_EndBlock_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   507  		ctx, cancel := context.WithCancel(req.Context())
   508  		defer cancel()
   509  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   510  		rctx, err := runtime.AnnotateContext(ctx, mux, req)
   511  		if err != nil {
   512  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   513  			return
   514  		}
   515  		resp, md, err := request_ABCIApplication_EndBlock_0(rctx, inboundMarshaler, client, req, pathParams)
   516  		ctx = runtime.NewServerMetadataContext(ctx, md)
   517  		if err != nil {
   518  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   519  			return
   520  		}
   521  
   522  		forward_ABCIApplication_EndBlock_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   523  
   524  	})
   525  
   526  	return nil
   527  }
   528  
   529  var (
   530  	pattern_ABCIApplication_DeliverTx_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"abci", "v1", "DeliverTx"}, "", runtime.AssumeColonVerbOpt(true)))
   531  
   532  	pattern_ABCIApplication_CheckTx_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"abci", "v1", "CheckTx"}, "", runtime.AssumeColonVerbOpt(true)))
   533  
   534  	pattern_ABCIApplication_Commit_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"abci", "v1", "Commit"}, "", runtime.AssumeColonVerbOpt(true)))
   535  
   536  	pattern_ABCIApplication_InitChain_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"abci", "v1", "InitChain"}, "", runtime.AssumeColonVerbOpt(true)))
   537  
   538  	pattern_ABCIApplication_BeginBlock_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"abci", "v1", "BeginBlock"}, "", runtime.AssumeColonVerbOpt(true)))
   539  
   540  	pattern_ABCIApplication_EndBlock_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"abci", "v1", "EndBlock"}, "", runtime.AssumeColonVerbOpt(true)))
   541  )
   542  
   543  var (
   544  	forward_ABCIApplication_DeliverTx_0 = runtime.ForwardResponseMessage
   545  
   546  	forward_ABCIApplication_CheckTx_0 = runtime.ForwardResponseMessage
   547  
   548  	forward_ABCIApplication_Commit_0 = runtime.ForwardResponseMessage
   549  
   550  	forward_ABCIApplication_InitChain_0 = runtime.ForwardResponseMessage
   551  
   552  	forward_ABCIApplication_BeginBlock_0 = runtime.ForwardResponseMessage
   553  
   554  	forward_ABCIApplication_EndBlock_0 = runtime.ForwardResponseMessage
   555  )