2021-08-16 18:57:19 +03:00
|
|
|
// Code generated by protoc-gen-go-micro. DO NOT EDIT.
|
2022-01-10 16:47:37 +03:00
|
|
|
// protoc-gen-go-micro version: v3.5.3
|
2021-03-28 19:17:08 +03:00
|
|
|
// source: health.proto
|
2021-08-16 18:57:19 +03:00
|
|
|
|
2021-03-28 19:28:01 +03:00
|
|
|
package health
|
2021-03-28 19:17:08 +03:00
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
2023-02-21 02:10:24 +03:00
|
|
|
v3 "go.unistack.org/micro-server-http/v3"
|
2021-10-02 19:55:07 +03:00
|
|
|
codec "go.unistack.org/micro/v3/codec"
|
|
|
|
server "go.unistack.org/micro/v3/server"
|
2021-03-28 19:17:08 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
type healthServer struct {
|
|
|
|
HealthServer
|
|
|
|
}
|
|
|
|
|
|
|
|
func (h *healthServer) Live(ctx context.Context, req *codec.Frame, rsp *codec.Frame) error {
|
|
|
|
return h.HealthServer.Live(ctx, req, rsp)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (h *healthServer) Ready(ctx context.Context, req *codec.Frame, rsp *codec.Frame) error {
|
|
|
|
return h.HealthServer.Ready(ctx, req, rsp)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (h *healthServer) Version(ctx context.Context, req *codec.Frame, rsp *codec.Frame) error {
|
|
|
|
return h.HealthServer.Version(ctx, req, rsp)
|
|
|
|
}
|
|
|
|
|
|
|
|
func RegisterHealthServer(s server.Server, sh HealthServer, opts ...server.HandlerOption) error {
|
|
|
|
type health interface {
|
|
|
|
}
|
|
|
|
type Health struct {
|
|
|
|
health
|
|
|
|
}
|
|
|
|
h := &healthServer{sh}
|
|
|
|
var nopts []server.HandlerOption
|
2023-02-21 02:10:24 +03:00
|
|
|
nopts = append(nopts, v3.HandlerMetadata(HealthServerEndpoints))
|
2021-03-28 19:17:08 +03:00
|
|
|
return s.Handle(s.NewHandler(&Health{h}, append(nopts, opts...)...))
|
|
|
|
}
|