2021-08-16 18:57:19 +03:00
|
|
|
// Code generated by protoc-gen-go-micro. DO NOT EDIT.
|
2021-10-23 23:45:53 +03:00
|
|
|
// protoc-gen-go-micro version: v3.5.2
|
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"
|
2021-10-02 19:55:07 +03:00
|
|
|
api "go.unistack.org/micro/v3/api"
|
|
|
|
codec "go.unistack.org/micro/v3/codec"
|
2021-03-28 19:17:08 +03:00
|
|
|
)
|
|
|
|
|
2021-08-16 18:57:19 +03:00
|
|
|
var (
|
|
|
|
HealthName = "Health"
|
|
|
|
|
|
|
|
HealthEndpoints = []api.Endpoint{
|
2021-08-21 01:00:10 +03:00
|
|
|
{
|
2021-03-28 19:17:08 +03:00
|
|
|
Name: "Health.Live",
|
|
|
|
Path: []string{"/live"},
|
|
|
|
Method: []string{"GET"},
|
|
|
|
Handler: "rpc",
|
|
|
|
},
|
2021-08-21 01:00:10 +03:00
|
|
|
{
|
2021-03-28 19:17:08 +03:00
|
|
|
Name: "Health.Ready",
|
|
|
|
Path: []string{"/ready"},
|
|
|
|
Method: []string{"GET"},
|
|
|
|
Handler: "rpc",
|
|
|
|
},
|
2021-08-21 01:00:10 +03:00
|
|
|
{
|
2021-03-28 19:17:08 +03:00
|
|
|
Name: "Health.Version",
|
|
|
|
Path: []string{"/version"},
|
|
|
|
Method: []string{"GET"},
|
|
|
|
Handler: "rpc",
|
|
|
|
},
|
|
|
|
}
|
2021-08-16 18:57:19 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
func NewHealthEndpoints() []api.Endpoint {
|
|
|
|
return HealthEndpoints
|
2021-03-28 19:17:08 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
type HealthServer interface {
|
|
|
|
Live(ctx context.Context, req *codec.Frame, rsp *codec.Frame) error
|
|
|
|
Ready(ctx context.Context, req *codec.Frame, rsp *codec.Frame) error
|
|
|
|
Version(ctx context.Context, req *codec.Frame, rsp *codec.Frame) error
|
|
|
|
}
|