github.com/grafana/pyroscope@v1.18.0/pkg/frontend/frontendpb/frontendpbconnect/frontend.connect.mux.go (about)

     1  // Code generated by protoc-gen-connect-go-mux. DO NOT EDIT.
     2  //
     3  // Source: frontend/frontendpb/frontend.proto
     4  
     5  package frontendpbconnect
     6  
     7  import (
     8  	connect "connectrpc.com/connect"
     9  	mux "github.com/gorilla/mux"
    10  )
    11  
    12  // This is a compile-time assertion to ensure that this generated file and the connect package are
    13  // compatible. If you get a compiler error that this constant is not defined, this code was
    14  // generated with a version of connect newer than the one compiled into your binary. You can fix the
    15  // problem by either regenerating this code with an older version of connect or updating the connect
    16  // version compiled into your binary.
    17  const _ = connect.IsAtLeastVersion0_1_0
    18  
    19  // RegisterFrontendForQuerierHandler register an HTTP handler to a mux.Router from the service
    20  // implementation.
    21  func RegisterFrontendForQuerierHandler(mux *mux.Router, svc FrontendForQuerierHandler, opts ...connect.HandlerOption) {
    22  	mux.Handle("/frontendpb.FrontendForQuerier/QueryResult", connect.NewUnaryHandler(
    23  		"/frontendpb.FrontendForQuerier/QueryResult",
    24  		svc.QueryResult,
    25  		opts...,
    26  	))
    27  }