-
Notifications
You must be signed in to change notification settings - Fork 571
/
querier.connect.mux.go
67 lines (63 loc) · 2.31 KB
/
querier.connect.mux.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// Code generated by protoc-gen-connect-go-mux. DO NOT EDIT.
//
// Source: querier/v1/querier.proto
package querierv1connect
import (
connect "connectrpc.com/connect"
mux "github.com/gorilla/mux"
)
// This is a compile-time assertion to ensure that this generated file and the connect package are
// compatible. If you get a compiler error that this constant is not defined, this code was
// generated with a version of connect newer than the one compiled into your binary. You can fix the
// problem by either regenerating this code with an older version of connect or updating the connect
// version compiled into your binary.
const _ = connect.IsAtLeastVersion0_1_0
// RegisterQuerierServiceHandler register an HTTP handler to a mux.Router from the service
// implementation.
func RegisterQuerierServiceHandler(mux *mux.Router, svc QuerierServiceHandler, opts ...connect.HandlerOption) {
mux.Handle("/querier.v1.QuerierService/ProfileTypes", connect.NewUnaryHandler(
"/querier.v1.QuerierService/ProfileTypes",
svc.ProfileTypes,
opts...,
))
mux.Handle("/querier.v1.QuerierService/LabelValues", connect.NewUnaryHandler(
"/querier.v1.QuerierService/LabelValues",
svc.LabelValues,
opts...,
))
mux.Handle("/querier.v1.QuerierService/LabelNames", connect.NewUnaryHandler(
"/querier.v1.QuerierService/LabelNames",
svc.LabelNames,
opts...,
))
mux.Handle("/querier.v1.QuerierService/Series", connect.NewUnaryHandler(
"/querier.v1.QuerierService/Series",
svc.Series,
opts...,
))
mux.Handle("/querier.v1.QuerierService/SelectMergeStacktraces", connect.NewUnaryHandler(
"/querier.v1.QuerierService/SelectMergeStacktraces",
svc.SelectMergeStacktraces,
opts...,
))
mux.Handle("/querier.v1.QuerierService/SelectMergeSpanProfile", connect.NewUnaryHandler(
"/querier.v1.QuerierService/SelectMergeSpanProfile",
svc.SelectMergeSpanProfile,
opts...,
))
mux.Handle("/querier.v1.QuerierService/SelectMergeProfile", connect.NewUnaryHandler(
"/querier.v1.QuerierService/SelectMergeProfile",
svc.SelectMergeProfile,
opts...,
))
mux.Handle("/querier.v1.QuerierService/SelectSeries", connect.NewUnaryHandler(
"/querier.v1.QuerierService/SelectSeries",
svc.SelectSeries,
opts...,
))
mux.Handle("/querier.v1.QuerierService/Diff", connect.NewUnaryHandler(
"/querier.v1.QuerierService/Diff",
svc.Diff,
opts...,
))
}