-
Notifications
You must be signed in to change notification settings - Fork 574
/
storegateway.connect.mux.go
67 lines (63 loc) · 2.57 KB
/
storegateway.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: storegateway/v1/storegateway.proto
package storegatewayv1connect
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
// RegisterStoreGatewayServiceHandler register an HTTP handler to a mux.Router from the service
// implementation.
func RegisterStoreGatewayServiceHandler(mux *mux.Router, svc StoreGatewayServiceHandler, opts ...connect.HandlerOption) {
mux.Handle("/storegateway.v1.StoreGatewayService/MergeProfilesStacktraces", connect.NewBidiStreamHandler(
"/storegateway.v1.StoreGatewayService/MergeProfilesStacktraces",
svc.MergeProfilesStacktraces,
opts...,
))
mux.Handle("/storegateway.v1.StoreGatewayService/MergeProfilesLabels", connect.NewBidiStreamHandler(
"/storegateway.v1.StoreGatewayService/MergeProfilesLabels",
svc.MergeProfilesLabels,
opts...,
))
mux.Handle("/storegateway.v1.StoreGatewayService/MergeProfilesPprof", connect.NewBidiStreamHandler(
"/storegateway.v1.StoreGatewayService/MergeProfilesPprof",
svc.MergeProfilesPprof,
opts...,
))
mux.Handle("/storegateway.v1.StoreGatewayService/MergeSpanProfile", connect.NewBidiStreamHandler(
"/storegateway.v1.StoreGatewayService/MergeSpanProfile",
svc.MergeSpanProfile,
opts...,
))
mux.Handle("/storegateway.v1.StoreGatewayService/ProfileTypes", connect.NewUnaryHandler(
"/storegateway.v1.StoreGatewayService/ProfileTypes",
svc.ProfileTypes,
opts...,
))
mux.Handle("/storegateway.v1.StoreGatewayService/LabelValues", connect.NewUnaryHandler(
"/storegateway.v1.StoreGatewayService/LabelValues",
svc.LabelValues,
opts...,
))
mux.Handle("/storegateway.v1.StoreGatewayService/LabelNames", connect.NewUnaryHandler(
"/storegateway.v1.StoreGatewayService/LabelNames",
svc.LabelNames,
opts...,
))
mux.Handle("/storegateway.v1.StoreGatewayService/Series", connect.NewUnaryHandler(
"/storegateway.v1.StoreGatewayService/Series",
svc.Series,
opts...,
))
mux.Handle("/storegateway.v1.StoreGatewayService/BlockMetadata", connect.NewUnaryHandler(
"/storegateway.v1.StoreGatewayService/BlockMetadata",
svc.BlockMetadata,
opts...,
))
}