github.com/grafana/pyroscope@v1.18.0/pkg/scheduler/schedulerpb/schedulerpbconnect/scheduler.connect.mux.go (about) 1 // Code generated by protoc-gen-connect-go-mux. DO NOT EDIT. 2 // 3 // Source: scheduler/schedulerpb/scheduler.proto 4 5 package schedulerpbconnect 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 // RegisterSchedulerForQuerierHandler register an HTTP handler to a mux.Router from the service 20 // implementation. 21 func RegisterSchedulerForQuerierHandler(mux *mux.Router, svc SchedulerForQuerierHandler, opts ...connect.HandlerOption) { 22 mux.Handle("/schedulerpb.SchedulerForQuerier/QuerierLoop", connect.NewBidiStreamHandler( 23 "/schedulerpb.SchedulerForQuerier/QuerierLoop", 24 svc.QuerierLoop, 25 opts..., 26 )) 27 mux.Handle("/schedulerpb.SchedulerForQuerier/NotifyQuerierShutdown", connect.NewUnaryHandler( 28 "/schedulerpb.SchedulerForQuerier/NotifyQuerierShutdown", 29 svc.NotifyQuerierShutdown, 30 opts..., 31 )) 32 } 33 34 // RegisterSchedulerForFrontendHandler register an HTTP handler to a mux.Router from the service 35 // implementation. 36 func RegisterSchedulerForFrontendHandler(mux *mux.Router, svc SchedulerForFrontendHandler, opts ...connect.HandlerOption) { 37 mux.Handle("/schedulerpb.SchedulerForFrontend/FrontendLoop", connect.NewBidiStreamHandler( 38 "/schedulerpb.SchedulerForFrontend/FrontendLoop", 39 svc.FrontendLoop, 40 opts..., 41 )) 42 }