MCPcopy Create free account
hub / github.com/dearcode/candy / _Gate_Push_Handler

Function _Gate_Push_Handler

meta/gate.pb.go:1181–1197  ·  view source on GitHub ↗
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)

Source from the content-addressed store, hash-verified

1179}
1180
1181func _Gate_Push_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1182 in := new(GatePushRequest)
1183 if err := dec(in); err != nil {
1184 return nil, err
1185 }
1186 if interceptor == nil {
1187 return srv.(GateServer).Push(ctx, in)
1188 }
1189 info := &grpc.UnaryServerInfo{
1190 Server: srv,
1191 FullMethod: "/candy.meta.Gate/Push",
1192 }
1193 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1194 return srv.(GateServer).Push(ctx, req.(*GatePushRequest))
1195 }
1196 return interceptor(ctx, in, info, handler)
1197}
1198
1199var _Gate_serviceDesc = grpc.ServiceDesc{
1200 ServiceName: "candy.meta.Gate",

Callers

nothing calls this directly

Calls 1

PushMethod · 0.65

Tested by

no test coverage detected