2021-08-16 18:57:19 +03:00
|
|
|
// Code generated by protoc-gen-go-micro. DO NOT EDIT.
|
|
|
|
// protoc-gen-go-micro version: v3.4.2
|
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"
|
|
|
|
api "github.com/unistack-org/micro/v3/api"
|
|
|
|
codec "github.com/unistack-org/micro/v3/codec"
|
|
|
|
)
|
|
|
|
|
2021-08-16 18:57:19 +03:00
|
|
|
var (
|
|
|
|
MeterName = "Meter"
|
|
|
|
|
|
|
|
MeterEndpoints = []api.Endpoint{
|
2021-08-21 01:00:10 +03:00
|
|
|
{
|
2021-03-23 17:00:02 +03:00
|
|
|
Name: "Meter.Metrics",
|
|
|
|
Path: []string{"/metrics"},
|
|
|
|
Method: []string{"GET"},
|
|
|
|
Handler: "rpc",
|
|
|
|
},
|
|
|
|
}
|
2021-08-16 18:57:19 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
func NewMeterEndpoints() []api.Endpoint {
|
|
|
|
return MeterEndpoints
|
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
|
|
|
}
|