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

Function _Gate_DownloadFile_Handler

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

Source from the content-addressed store, hash-verified

1143}
1144
1145func _Gate_DownloadFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1146 in := new(GateDownloadFileRequest)
1147 if err := dec(in); err != nil {
1148 return nil, err
1149 }
1150 if interceptor == nil {
1151 return srv.(GateServer).DownloadFile(ctx, in)
1152 }
1153 info := &grpc.UnaryServerInfo{
1154 Server: srv,
1155 FullMethod: "/candy.meta.Gate/DownloadFile",
1156 }
1157 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1158 return srv.(GateServer).DownloadFile(ctx, req.(*GateDownloadFileRequest))
1159 }
1160 return interceptor(ctx, in, info, handler)
1161}
1162
1163func _Gate_LoadMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1164 in := new(GateLoadMessageRequest)

Callers

nothing calls this directly

Calls 1

DownloadFileMethod · 0.65

Tested by

no test coverage detected