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-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"
|
|
|
|
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 (
|
|
|
|
HealthName = "Health"
|
|
|
|
|
|
|
|
HealthEndpoints = []api.Endpoint{
|
|
|
|
api.Endpoint{
|
2021-03-28 19:17:08 +03:00
|
|
|
Name: "Health.Live",
|
|
|
|
Path: []string{"/live"},
|
|
|
|
Method: []string{"GET"},
|
|
|
|
Handler: "rpc",
|
|
|
|
},
|
2021-08-16 18:57:19 +03:00
|
|
|
api.Endpoint{
|
2021-03-28 19:17:08 +03:00
|
|
|
Name: "Health.Ready",
|
|
|
|
Path: []string{"/ready"},
|
|
|
|
Method: []string{"GET"},
|
|
|
|
Handler: "rpc",
|
|
|
|
},
|
2021-08-16 18:57:19 +03:00
|
|
|
api.Endpoint{
|
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
|
|
|
|
}
|