MCPcopy Index your code
hub / github.com/cortexproject/cortex / _Ruler_LivenessCheck_Handler

Function _Ruler_LivenessCheck_Handler

pkg/ruler/ruler.pb.go:1108–1124  ·  view source on GitHub ↗
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)

Source from the content-addressed store, hash-verified

1106}
1107
1108func _Ruler_LivenessCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1109 in := new(LivenessCheckRequest)
1110 if err := dec(in); err != nil {
1111 return nil, err
1112 }
1113 if interceptor == nil {
1114 return srv.(RulerServer).LivenessCheck(ctx, in)
1115 }
1116 info := &grpc.UnaryServerInfo{
1117 Server: srv,
1118 FullMethod: "/ruler.Ruler/LivenessCheck",
1119 }
1120 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1121 return srv.(RulerServer).LivenessCheck(ctx, req.(*LivenessCheckRequest))
1122 }
1123 return interceptor(ctx, in, info, handler)
1124}
1125
1126var _Ruler_serviceDesc = grpc.ServiceDesc{
1127 ServiceName: "ruler.Ruler",

Callers

nothing calls this directly

Calls 1

LivenessCheckMethod · 0.65

Tested by

no test coverage detected