|
|
|
@ -210,7 +210,7 @@ var file_v1_health_health_proto_rawDesc = []byte{
|
|
|
|
|
0x52, 0x04, 0x64, 0x65, 0x73, 0x63, 0x12, 0x2e, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04,
|
|
|
|
|
0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x67, 0x72, 0x70,
|
|
|
|
|
0x63, 0x2e, 0x76, 0x31, 0x2e, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2e, 0x44, 0x61, 0x74, 0x61,
|
|
|
|
|
0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x32, 0xd3, 0x01, 0x0a, 0x0d, 0x48, 0x65, 0x61, 0x6c, 0x74,
|
|
|
|
|
0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x32, 0xb4, 0x02, 0x0a, 0x0d, 0x48, 0x65, 0x61, 0x6c, 0x74,
|
|
|
|
|
0x68, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5f, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74,
|
|
|
|
|
0x75, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
|
|
|
|
0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1e, 0x2e, 0x61, 0x70, 0x69,
|
|
|
|
@ -223,11 +223,17 @@ var file_v1_health_health_proto_rawDesc = []byte{
|
|
|
|
|
0x70, 0x69, 0x2e, 0x67, 0x6f, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x68, 0x65, 0x61,
|
|
|
|
|
0x6c, 0x74, 0x68, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1e, 0x82, 0xd3,
|
|
|
|
|
0xe4, 0x93, 0x02, 0x18, 0x12, 0x16, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x68, 0x65,
|
|
|
|
|
0x61, 0x6c, 0x74, 0x68, 0x2f, 0x63, 0x61, 0x6c, 0x6c, 0x61, 0x70, 0x69, 0x42, 0x37, 0x5a, 0x35,
|
|
|
|
|
0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6a, 0x69, 0x6b, 0x61,
|
|
|
|
|
0x6d, 0x61, 0x6c, 0x75, 0x64, 0x69, 0x6e, 0x2f, 0x67, 0x6f, 0x2d, 0x67, 0x72, 0x70, 0x63, 0x5f,
|
|
|
|
|
0x62, 0x61, 0x73, 0x69, 0x63, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x2f, 0x68,
|
|
|
|
|
0x65, 0x61, 0x6c, 0x74, 0x68, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
|
|
0x61, 0x6c, 0x74, 0x68, 0x2f, 0x63, 0x61, 0x6c, 0x6c, 0x61, 0x70, 0x69, 0x12, 0x5f, 0x0a, 0x06,
|
|
|
|
|
0x43, 0x61, 0x6c, 0x6c, 0x44, 0x62, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
|
|
|
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1e,
|
|
|
|
|
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x68,
|
|
|
|
|
0x65, 0x61, 0x6c, 0x74, 0x68, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1d,
|
|
|
|
|
0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x12, 0x15, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f,
|
|
|
|
|
0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2f, 0x63, 0x61, 0x6c, 0x6c, 0x64, 0x62, 0x42, 0x37, 0x5a,
|
|
|
|
|
0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6a, 0x69, 0x6b,
|
|
|
|
|
0x61, 0x6d, 0x61, 0x6c, 0x75, 0x64, 0x69, 0x6e, 0x2f, 0x67, 0x6f, 0x2d, 0x67, 0x72, 0x70, 0x63,
|
|
|
|
|
0x5f, 0x62, 0x61, 0x73, 0x69, 0x63, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x2f,
|
|
|
|
|
0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var (
|
|
|
|
@ -252,10 +258,12 @@ var file_v1_health_health_proto_depIdxs = []int32{
|
|
|
|
|
0, // 0: api.gogrpc.v1.health.Response.data:type_name -> api.gogrpc.v1.health.Data
|
|
|
|
|
2, // 1: api.gogrpc.v1.health.HealthService.Status:input_type -> google.protobuf.Empty
|
|
|
|
|
2, // 2: api.gogrpc.v1.health.HealthService.CallApi:input_type -> google.protobuf.Empty
|
|
|
|
|
1, // 3: api.gogrpc.v1.health.HealthService.Status:output_type -> api.gogrpc.v1.health.Response
|
|
|
|
|
1, // 4: api.gogrpc.v1.health.HealthService.CallApi:output_type -> api.gogrpc.v1.health.Response
|
|
|
|
|
3, // [3:5] is the sub-list for method output_type
|
|
|
|
|
1, // [1:3] is the sub-list for method input_type
|
|
|
|
|
2, // 3: api.gogrpc.v1.health.HealthService.CallDb:input_type -> google.protobuf.Empty
|
|
|
|
|
1, // 4: api.gogrpc.v1.health.HealthService.Status:output_type -> api.gogrpc.v1.health.Response
|
|
|
|
|
1, // 5: api.gogrpc.v1.health.HealthService.CallApi:output_type -> api.gogrpc.v1.health.Response
|
|
|
|
|
1, // 6: api.gogrpc.v1.health.HealthService.CallDb:output_type -> api.gogrpc.v1.health.Response
|
|
|
|
|
4, // [4:7] is the sub-list for method output_type
|
|
|
|
|
1, // [1:4] is the sub-list for method input_type
|
|
|
|
|
1, // [1:1] is the sub-list for extension type_name
|
|
|
|
|
1, // [1:1] is the sub-list for extension extendee
|
|
|
|
|
0, // [0:1] is the sub-list for field type_name
|
|
|
|
@ -326,6 +334,7 @@ const _ = grpc.SupportPackageIsVersion6
|
|
|
|
|
type HealthServiceClient interface {
|
|
|
|
|
Status(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Response, error)
|
|
|
|
|
CallApi(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Response, error)
|
|
|
|
|
CallDb(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Response, error)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type healthServiceClient struct {
|
|
|
|
@ -354,10 +363,20 @@ func (c *healthServiceClient) CallApi(ctx context.Context, in *emptypb.Empty, op
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *healthServiceClient) CallDb(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Response, error) {
|
|
|
|
|
out := new(Response)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/api.gogrpc.v1.health.HealthService/CallDb", in, out, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// HealthServiceServer is the server API for HealthService service.
|
|
|
|
|
type HealthServiceServer interface {
|
|
|
|
|
Status(context.Context, *emptypb.Empty) (*Response, error)
|
|
|
|
|
CallApi(context.Context, *emptypb.Empty) (*Response, error)
|
|
|
|
|
CallDb(context.Context, *emptypb.Empty) (*Response, error)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// UnimplementedHealthServiceServer can be embedded to have forward compatible implementations.
|
|
|
|
@ -370,6 +389,9 @@ func (*UnimplementedHealthServiceServer) Status(context.Context, *emptypb.Empty)
|
|
|
|
|
func (*UnimplementedHealthServiceServer) CallApi(context.Context, *emptypb.Empty) (*Response, error) {
|
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method CallApi not implemented")
|
|
|
|
|
}
|
|
|
|
|
func (*UnimplementedHealthServiceServer) CallDb(context.Context, *emptypb.Empty) (*Response, error) {
|
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method CallDb not implemented")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func RegisterHealthServiceServer(s *grpc.Server, srv HealthServiceServer) {
|
|
|
|
|
s.RegisterService(&_HealthService_serviceDesc, srv)
|
|
|
|
@ -411,6 +433,24 @@ func _HealthService_CallApi_Handler(srv interface{}, ctx context.Context, dec fu
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func _HealthService_CallDb_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(emptypb.Empty)
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
if interceptor == nil {
|
|
|
|
|
return srv.(HealthServiceServer).CallDb(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
|
Server: srv,
|
|
|
|
|
FullMethod: "/api.gogrpc.v1.health.HealthService/CallDb",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(HealthServiceServer).CallDb(ctx, req.(*emptypb.Empty))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var _HealthService_serviceDesc = grpc.ServiceDesc{
|
|
|
|
|
ServiceName: "api.gogrpc.v1.health.HealthService",
|
|
|
|
|
HandlerType: (*HealthServiceServer)(nil),
|
|
|
|
@ -423,6 +463,10 @@ var _HealthService_serviceDesc = grpc.ServiceDesc{
|
|
|
|
|
MethodName: "CallApi",
|
|
|
|
|
Handler: _HealthService_CallApi_Handler,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
MethodName: "CallDb",
|
|
|
|
|
Handler: _HealthService_CallDb_Handler,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
|
|
Metadata: "v1/health/health.proto",
|
|
|
|
|