2023-02-26 14:51:34 +03:00
|
|
|
// Code generated by protoc-gen-go-micro. DO NOT EDIT.
|
2023-05-04 02:20:25 +03:00
|
|
|
// protoc-gen-go-micro version: v4.0.0
|
|
|
|
// source: meter/meter.proto
|
2023-02-26 14:51:34 +03:00
|
|
|
|
|
|
|
package meter
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
2023-04-28 21:59:31 +03:00
|
|
|
codec "go.unistack.org/micro-proto/v4/codec"
|
|
|
|
v4 "go.unistack.org/micro-server-http/v4"
|
|
|
|
server "go.unistack.org/micro/v4/server"
|
2023-02-26 14:51:34 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
type meterServiceServer struct {
|
|
|
|
MeterServiceServer
|
|
|
|
}
|
|
|
|
|
|
|
|
func (h *meterServiceServer) Metrics(ctx context.Context, req *codec.Frame, rsp *codec.Frame) error {
|
|
|
|
return h.MeterServiceServer.Metrics(ctx, req, rsp)
|
|
|
|
}
|
|
|
|
|
|
|
|
func RegisterMeterServiceServer(s server.Server, sh MeterServiceServer, opts ...server.HandlerOption) error {
|
|
|
|
type meterService interface {
|
|
|
|
Metrics(ctx context.Context, req *codec.Frame, rsp *codec.Frame) error
|
|
|
|
}
|
|
|
|
type MeterService struct {
|
|
|
|
meterService
|
|
|
|
}
|
|
|
|
h := &meterServiceServer{sh}
|
|
|
|
var nopts []server.HandlerOption
|
2023-04-28 21:59:31 +03:00
|
|
|
nopts = append(nopts, v4.HandlerEndpoints(MeterServiceServerEndpoints))
|
2023-02-26 14:51:34 +03:00
|
|
|
return s.Handle(s.NewHandler(&MeterService{h}, append(nopts, opts...)...))
|
|
|
|
}
|