2021-08-16 18:57:19 +03:00
|
|
|
// Code generated by protoc-gen-go-micro. DO NOT EDIT.
|
2023-02-21 02:10:24 +03:00
|
|
|
// versions:
|
|
|
|
// - protoc-gen-go-micro v3.5.3
|
|
|
|
// - protoc v3.21.12
|
2021-03-23 17:00:02 +03:00
|
|
|
// source: handler.proto
|
2021-08-16 18:57:19 +03:00
|
|
|
|
2021-03-28 19:28:01 +03:00
|
|
|
package handler
|
2021-03-23 17:00:02 +03:00
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
2021-10-02 19:55:07 +03:00
|
|
|
codec "go.unistack.org/micro/v3/codec"
|
2023-02-21 02:10:24 +03:00
|
|
|
http "net/http"
|
2021-03-23 17:00:02 +03:00
|
|
|
)
|
|
|
|
|
2021-08-16 18:57:19 +03:00
|
|
|
var (
|
|
|
|
MeterName = "Meter"
|
2023-02-21 02:10:24 +03:00
|
|
|
)
|
|
|
|
var (
|
|
|
|
MeterServerEndpoints = map[string]map[string]string{
|
|
|
|
"/metrics": map[string]string{
|
|
|
|
"Method": http.MethodGet,
|
|
|
|
"Stream": "false",
|
2021-03-23 17:00:02 +03:00
|
|
|
},
|
|
|
|
}
|
2021-08-16 18:57:19 +03:00
|
|
|
)
|
|
|
|
|
2021-03-23 17:00:02 +03:00
|
|
|
type MeterServer interface {
|
2021-03-25 12:34:34 +03:00
|
|
|
Metrics(ctx context.Context, req *codec.Frame, rsp *codec.Frame) error
|
2021-03-23 17:00:02 +03:00
|
|
|
}
|