|
|
|
@ -436,36 +436,36 @@ func init() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var fileDescriptor_04968622516f7b79 = []byte{ |
|
|
|
|
// 453 bytes of a gzipped FileDescriptorProto
|
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x93, 0xc1, 0x8e, 0x93, 0x40, |
|
|
|
|
0x18, 0xc7, 0x19, 0x88, 0x5b, 0xfb, 0x35, 0x56, 0x9d, 0x8d, 0xb1, 0xa9, 0x3a, 0x59, 0xc7, 0x44, |
|
|
|
|
0xd7, 0x83, 0x90, 0x54, 0x7d, 0x81, 0x7a, 0x30, 0xae, 0x07, 0x23, 0xeb, 0x69, 0x2f, 0x0a, 0x74, |
|
|
|
|
0x5a, 0xa7, 0x50, 0x06, 0x99, 0xc1, 0x74, 0x6f, 0x3e, 0x82, 0x8f, 0xe0, 0xd1, 0x47, 0xf1, 0xd8, |
|
|
|
|
0xe3, 0x1e, 0x2d, 0xbd, 0x78, 0xdc, 0x47, 0x30, 0x0c, 0x50, 0x25, 0x4b, 0xea, 0x5e, 0x3c, 0x01, |
|
|
|
|
0x7f, 0x7e, 0x7c, 0xff, 0x3f, 0xdf, 0xf7, 0x0d, 0x38, 0x49, 0x38, 0x73, 0xfc, 0x48, 0x04, 0xa1, |
|
|
|
|
0x9f, 0xf1, 0x68, 0xc2, 0x52, 0x47, 0x9d, 0x26, 0x4c, 0x3a, 0x49, 0x2a, 0x94, 0x68, 0xbc, 0xb0, |
|
|
|
|
0xb5, 0x84, 0x71, 0x43, 0xd3, 0x30, 0xb5, 0xe1, 0xda, 0x4b, 0xa6, 0x8e, 0x84, 0xef, 0xb2, 0x4f, |
|
|
|
|
0x19, 0x93, 0x0a, 0xdf, 0x03, 0xa8, 0x88, 0xf7, 0x7c, 0x32, 0x40, 0x07, 0xe8, 0xb0, 0xeb, 0x76, |
|
|
|
|
0x2b, 0xe5, 0xd5, 0x84, 0xb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c, 0xb9, 0x22, 0xc6, 0xd9, 0x8a, 0x18, 0xe7, 0x2b, 0x82, 0xbe, |
|
|
|
|
0x14, 0x04, 0x7d, 0x2f, 0x08, 0xfa, 0x51, 0x10, 0xb4, 0x2c, 0x08, 0xfa, 0x59, 0x10, 0xf4, 0xab, |
|
|
|
|
0x20, 0xc6, 0x79, 0x41, 0xd0, 0xd7, 0x35, 0x31, 0x96, 0x6b, 0x62, 0x9c, 0xad, 0x89, 0x71, 0xfc, |
|
|
|
|
0x6c, 0xca, 0xd5, 0x49, 0xee, 0xdb, 0x81, 0x98, 0x3b, 0xd3, 0xcc, 0x9b, 0x78, 0x89, 0xe7, 0xc4, |
|
|
|
|
0x22, 0xe2, 0x3b, 0x8f, 0xb2, 0xbf, 0xa7, 0x2f, 0x4f, 0x7f, 0x07, 0x00, 0x00, 0xff, 0xff, 0x68, |
|
|
|
|
0x46, 0x93, 0x30, 0xf1, 0x03, 0x00, 0x00, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (this *GetJobRequest) Equal(that interface{}) bool { |
|
|
|
@ -785,10 +785,10 @@ var _ grpc.ClientConn |
|
|
|
|
// is compatible with the grpc package it is being compiled against.
|
|
|
|
|
const _ = grpc.SupportPackageIsVersion4 |
|
|
|
|
|
|
|
|
|
// BlockBuilderServiceClient is the client API for BlockBuilderService service.
|
|
|
|
|
// SchedulerServiceClient is the client API for SchedulerService service.
|
|
|
|
|
//
|
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
|
|
type BlockBuilderServiceClient interface { |
|
|
|
|
type SchedulerServiceClient interface { |
|
|
|
|
// GetJob requests a new job from the scheduler
|
|
|
|
|
GetJob(ctx context.Context, in *GetJobRequest, opts ...grpc.CallOption) (*GetJobResponse, error) |
|
|
|
|
// CompleteJob notifies the scheduler that a job has been completed
|
|
|
|
@ -797,43 +797,43 @@ type BlockBuilderServiceClient interface { |
|
|
|
|
SyncJob(ctx context.Context, in *SyncJobRequest, opts ...grpc.CallOption) (*SyncJobResponse, error) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
type blockBuilderServiceClient struct { |
|
|
|
|
type schedulerServiceClient struct { |
|
|
|
|
cc *grpc.ClientConn |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func NewBlockBuilderServiceClient(cc *grpc.ClientConn) BlockBuilderServiceClient { |
|
|
|
|
return &blockBuilderServiceClient{cc} |
|
|
|
|
func NewSchedulerServiceClient(cc *grpc.ClientConn) SchedulerServiceClient { |
|
|
|
|
return &schedulerServiceClient{cc} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (c *blockBuilderServiceClient) GetJob(ctx context.Context, in *GetJobRequest, opts ...grpc.CallOption) (*GetJobResponse, error) { |
|
|
|
|
func (c *schedulerServiceClient) GetJob(ctx context.Context, in *GetJobRequest, opts ...grpc.CallOption) (*GetJobResponse, error) { |
|
|
|
|
out := new(GetJobResponse) |
|
|
|
|
err := c.cc.Invoke(ctx, "/blockbuilder.types.BlockBuilderService/GetJob", in, out, opts...) |
|
|
|
|
err := c.cc.Invoke(ctx, "/blockbuilder.types.SchedulerService/GetJob", in, out, opts...) |
|
|
|
|
if err != nil { |
|
|
|
|
return nil, err |
|
|
|
|
} |
|
|
|
|
return out, nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (c *blockBuilderServiceClient) CompleteJob(ctx context.Context, in *CompleteJobRequest, opts ...grpc.CallOption) (*CompleteJobResponse, error) { |
|
|
|
|
func (c *schedulerServiceClient) CompleteJob(ctx context.Context, in *CompleteJobRequest, opts ...grpc.CallOption) (*CompleteJobResponse, error) { |
|
|
|
|
out := new(CompleteJobResponse) |
|
|
|
|
err := c.cc.Invoke(ctx, "/blockbuilder.types.BlockBuilderService/CompleteJob", in, out, opts...) |
|
|
|
|
err := c.cc.Invoke(ctx, "/blockbuilder.types.SchedulerService/CompleteJob", in, out, opts...) |
|
|
|
|
if err != nil { |
|
|
|
|
return nil, err |
|
|
|
|
} |
|
|
|
|
return out, nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (c *blockBuilderServiceClient) SyncJob(ctx context.Context, in *SyncJobRequest, opts ...grpc.CallOption) (*SyncJobResponse, error) { |
|
|
|
|
func (c *schedulerServiceClient) SyncJob(ctx context.Context, in *SyncJobRequest, opts ...grpc.CallOption) (*SyncJobResponse, error) { |
|
|
|
|
out := new(SyncJobResponse) |
|
|
|
|
err := c.cc.Invoke(ctx, "/blockbuilder.types.BlockBuilderService/SyncJob", in, out, opts...) |
|
|
|
|
err := c.cc.Invoke(ctx, "/blockbuilder.types.SchedulerService/SyncJob", in, out, opts...) |
|
|
|
|
if err != nil { |
|
|
|
|
return nil, err |
|
|
|
|
} |
|
|
|
|
return out, nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// BlockBuilderServiceServer is the server API for BlockBuilderService service.
|
|
|
|
|
type BlockBuilderServiceServer interface { |
|
|
|
|
// SchedulerServiceServer is the server API for SchedulerService service.
|
|
|
|
|
type SchedulerServiceServer interface { |
|
|
|
|
// GetJob requests a new job from the scheduler
|
|
|
|
|
GetJob(context.Context, *GetJobRequest) (*GetJobResponse, error) |
|
|
|
|
// CompleteJob notifies the scheduler that a job has been completed
|
|
|
|
@ -842,93 +842,93 @@ type BlockBuilderServiceServer interface { |
|
|
|
|
SyncJob(context.Context, *SyncJobRequest) (*SyncJobResponse, error) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// UnimplementedBlockBuilderServiceServer can be embedded to have forward compatible implementations.
|
|
|
|
|
type UnimplementedBlockBuilderServiceServer struct { |
|
|
|
|
// UnimplementedSchedulerServiceServer can be embedded to have forward compatible implementations.
|
|
|
|
|
type UnimplementedSchedulerServiceServer struct { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (*UnimplementedBlockBuilderServiceServer) GetJob(ctx context.Context, req *GetJobRequest) (*GetJobResponse, error) { |
|
|
|
|
func (*UnimplementedSchedulerServiceServer) GetJob(ctx context.Context, req *GetJobRequest) (*GetJobResponse, error) { |
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetJob not implemented") |
|
|
|
|
} |
|
|
|
|
func (*UnimplementedBlockBuilderServiceServer) CompleteJob(ctx context.Context, req *CompleteJobRequest) (*CompleteJobResponse, error) { |
|
|
|
|
func (*UnimplementedSchedulerServiceServer) CompleteJob(ctx context.Context, req *CompleteJobRequest) (*CompleteJobResponse, error) { |
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method CompleteJob not implemented") |
|
|
|
|
} |
|
|
|
|
func (*UnimplementedBlockBuilderServiceServer) SyncJob(ctx context.Context, req *SyncJobRequest) (*SyncJobResponse, error) { |
|
|
|
|
func (*UnimplementedSchedulerServiceServer) SyncJob(ctx context.Context, req *SyncJobRequest) (*SyncJobResponse, error) { |
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method SyncJob not implemented") |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func RegisterBlockBuilderServiceServer(s *grpc.Server, srv BlockBuilderServiceServer) { |
|
|
|
|
s.RegisterService(&_BlockBuilderService_serviceDesc, srv) |
|
|
|
|
func RegisterSchedulerServiceServer(s *grpc.Server, srv SchedulerServiceServer) { |
|
|
|
|
s.RegisterService(&_SchedulerService_serviceDesc, srv) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func _BlockBuilderService_GetJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
|
|
|
|
func _SchedulerService_GetJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
|
|
|
|
in := new(GetJobRequest) |
|
|
|
|
if err := dec(in); err != nil { |
|
|
|
|
return nil, err |
|
|
|
|
} |
|
|
|
|
if interceptor == nil { |
|
|
|
|
return srv.(BlockBuilderServiceServer).GetJob(ctx, in) |
|
|
|
|
return srv.(SchedulerServiceServer).GetJob(ctx, in) |
|
|
|
|
} |
|
|
|
|
info := &grpc.UnaryServerInfo{ |
|
|
|
|
Server: srv, |
|
|
|
|
FullMethod: "/blockbuilder.types.BlockBuilderService/GetJob", |
|
|
|
|
FullMethod: "/blockbuilder.types.SchedulerService/GetJob", |
|
|
|
|
} |
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
|
|
|
|
return srv.(BlockBuilderServiceServer).GetJob(ctx, req.(*GetJobRequest)) |
|
|
|
|
return srv.(SchedulerServiceServer).GetJob(ctx, req.(*GetJobRequest)) |
|
|
|
|
} |
|
|
|
|
return interceptor(ctx, in, info, handler) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func _BlockBuilderService_CompleteJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
|
|
|
|
func _SchedulerService_CompleteJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
|
|
|
|
in := new(CompleteJobRequest) |
|
|
|
|
if err := dec(in); err != nil { |
|
|
|
|
return nil, err |
|
|
|
|
} |
|
|
|
|
if interceptor == nil { |
|
|
|
|
return srv.(BlockBuilderServiceServer).CompleteJob(ctx, in) |
|
|
|
|
return srv.(SchedulerServiceServer).CompleteJob(ctx, in) |
|
|
|
|
} |
|
|
|
|
info := &grpc.UnaryServerInfo{ |
|
|
|
|
Server: srv, |
|
|
|
|
FullMethod: "/blockbuilder.types.BlockBuilderService/CompleteJob", |
|
|
|
|
FullMethod: "/blockbuilder.types.SchedulerService/CompleteJob", |
|
|
|
|
} |
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
|
|
|
|
return srv.(BlockBuilderServiceServer).CompleteJob(ctx, req.(*CompleteJobRequest)) |
|
|
|
|
return srv.(SchedulerServiceServer).CompleteJob(ctx, req.(*CompleteJobRequest)) |
|
|
|
|
} |
|
|
|
|
return interceptor(ctx, in, info, handler) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func _BlockBuilderService_SyncJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
|
|
|
|
func _SchedulerService_SyncJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
|
|
|
|
in := new(SyncJobRequest) |
|
|
|
|
if err := dec(in); err != nil { |
|
|
|
|
return nil, err |
|
|
|
|
} |
|
|
|
|
if interceptor == nil { |
|
|
|
|
return srv.(BlockBuilderServiceServer).SyncJob(ctx, in) |
|
|
|
|
return srv.(SchedulerServiceServer).SyncJob(ctx, in) |
|
|
|
|
} |
|
|
|
|
info := &grpc.UnaryServerInfo{ |
|
|
|
|
Server: srv, |
|
|
|
|
FullMethod: "/blockbuilder.types.BlockBuilderService/SyncJob", |
|
|
|
|
FullMethod: "/blockbuilder.types.SchedulerService/SyncJob", |
|
|
|
|
} |
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
|
|
|
|
return srv.(BlockBuilderServiceServer).SyncJob(ctx, req.(*SyncJobRequest)) |
|
|
|
|
return srv.(SchedulerServiceServer).SyncJob(ctx, req.(*SyncJobRequest)) |
|
|
|
|
} |
|
|
|
|
return interceptor(ctx, in, info, handler) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var _BlockBuilderService_serviceDesc = grpc.ServiceDesc{ |
|
|
|
|
ServiceName: "blockbuilder.types.BlockBuilderService", |
|
|
|
|
HandlerType: (*BlockBuilderServiceServer)(nil), |
|
|
|
|
var _SchedulerService_serviceDesc = grpc.ServiceDesc{ |
|
|
|
|
ServiceName: "blockbuilder.types.SchedulerService", |
|
|
|
|
HandlerType: (*SchedulerServiceServer)(nil), |
|
|
|
|
Methods: []grpc.MethodDesc{ |
|
|
|
|
{ |
|
|
|
|
MethodName: "GetJob", |
|
|
|
|
Handler: _BlockBuilderService_GetJob_Handler, |
|
|
|
|
Handler: _SchedulerService_GetJob_Handler, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
MethodName: "CompleteJob", |
|
|
|
|
Handler: _BlockBuilderService_CompleteJob_Handler, |
|
|
|
|
Handler: _SchedulerService_CompleteJob_Handler, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
MethodName: "SyncJob", |
|
|
|
|
Handler: _BlockBuilderService_SyncJob_Handler, |
|
|
|
|
Handler: _SchedulerService_SyncJob_Handler, |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
Streams: []grpc.StreamDesc{}, |
|
|
|
|