MCPcopy Create free account
hub / github.com/evilsocket/sum / _SumService_UpdateOracle_Handler

Function _SumService_UpdateOracle_Handler

proto/sum.pb.go:1396–1412  ·  view source on GitHub ↗
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)

Source from the content-addressed store, hash-verified

1394}
1395
1396func _SumService_UpdateOracle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1397 in := new(Oracle)
1398 if err := dec(in); err != nil {
1399 return nil, err
1400 }
1401 if interceptor == nil {
1402 return srv.(SumServiceServer).UpdateOracle(ctx, in)
1403 }
1404 info := &grpc.UnaryServerInfo{
1405 Server: srv,
1406 FullMethod: "/sum.SumService/UpdateOracle",
1407 }
1408 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1409 return srv.(SumServiceServer).UpdateOracle(ctx, req.(*Oracle))
1410 }
1411 return interceptor(ctx, in, info, handler)
1412}
1413
1414func _SumService_ReadOracle_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1415 in := new(ById)

Callers

nothing calls this directly

Calls 1

UpdateOracleMethod · 0.65

Tested by

no test coverage detected