Commit 2c1b10d8 authored by Cristian Maglie's avatar Cristian Maglie

Added status streaming to Init grpc call

This will be useful in the next commits
parent 02a8800f
......@@ -86,7 +86,7 @@ func packageManagerInitReq() *rpc.InitReq {
func InitInstance() *rpc.InitResp {
logrus.Info("Initializing package manager")
req := packageManagerInitReq()
resp, err := commands.Init(context.Background(), req)
resp, err := commands.Init(context.Background(), req, OutputProgressBar(), OutputTaskProgress())
if err != nil {
formatter.PrintError(err, "Error initializing package manager")
os.Exit(ErrGeneric)
......
......@@ -72,7 +72,7 @@ func GetLibraryManager(req InstanceContainer) *librariesmanager.LibrariesManager
return i.lm
}
func Init(ctx context.Context, req *rpc.InitReq) (*rpc.InitResp, error) {
func Init(ctx context.Context, req *rpc.InitReq, downloadCB DownloadProgressCB, taskCB TaskProgressCB) (*rpc.InitResp, error) {
inConfig := req.GetConfiguration()
if inConfig == nil {
return nil, fmt.Errorf("invalid request")
......
......@@ -46,7 +46,7 @@ func main() {
// INIT
fmt.Println("=== calling Init")
initResp, err := client.Init(context.Background(), &rpc.InitReq{
initRespStream, err := client.Init(context.Background(), &rpc.InitReq{
Configuration: &rpc.Configuration{
DataDir: datadir,
},
......@@ -55,9 +55,28 @@ func main() {
fmt.Printf("Error creating server instance: %s\n", err)
os.Exit(1)
}
instance := initResp.GetInstance()
fmt.Printf("---> %+v\n", initResp)
fmt.Println()
var instance *rpc.Instance
for {
initResp, err := initRespStream.Recv()
if err == io.EOF {
fmt.Println()
break
}
if err != nil {
fmt.Printf("Init error: %s\n", err)
os.Exit(1)
}
if initResp.GetInstance() != nil {
instance = initResp.GetInstance()
fmt.Printf("---> %+v\n", initResp)
}
if initResp.GetDownloadProgress() != nil {
fmt.Printf(">> DOWNLOAD: %s\n", initResp.GetDownloadProgress())
}
if initResp.GetTaskProgress() != nil {
fmt.Printf(">> TASK: %s\n", initResp.GetTaskProgress())
}
}
// UPDATE-INDEX
fmt.Println("=== calling UpdateIndex")
......
......@@ -103,8 +103,16 @@ func (s *ArduinoCoreServerImpl) UpdateLibrariesIndex(req *rpc.UpdateLibrariesInd
return stream.Send(&rpc.UpdateLibrariesIndexResp{})
}
func (s *ArduinoCoreServerImpl) Init(ctx context.Context, req *rpc.InitReq) (*rpc.InitResp, error) {
return commands.Init(ctx, req)
func (s *ArduinoCoreServerImpl) Init(req *rpc.InitReq, stream rpc.ArduinoCore_InitServer) error {
resp, err := commands.Init(stream.Context(), req,
func(p *rpc.DownloadProgress) { stream.Send(&rpc.InitResp{DownloadProgress: p}) },
func(p *rpc.TaskProgress) { stream.Send(&rpc.InitResp{TaskProgress: p}) },
)
if err != nil {
return err
}
fmt.Println(resp)
return stream.Send(resp)
}
func (s *ArduinoCoreServerImpl) Compile(req *rpc.CompileReq, stream rpc.ArduinoCore_CompileServer) error {
......
......@@ -46,7 +46,7 @@ func (m *Configuration) Reset() { *m = Configuration{} }
func (m *Configuration) String() string { return proto.CompactTextString(m) }
func (*Configuration) ProtoMessage() {}
func (*Configuration) Descriptor() ([]byte, []int) {
return fileDescriptor_commands_43421ae8c8c5f1d9, []int{0}
return fileDescriptor_commands_a00a100136eab5d5, []int{0}
}
func (m *Configuration) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Configuration.Unmarshal(m, b)
......@@ -106,7 +106,7 @@ func (m *InitReq) Reset() { *m = InitReq{} }
func (m *InitReq) String() string { return proto.CompactTextString(m) }
func (*InitReq) ProtoMessage() {}
func (*InitReq) Descriptor() ([]byte, []int) {
return fileDescriptor_commands_43421ae8c8c5f1d9, []int{1}
return fileDescriptor_commands_a00a100136eab5d5, []int{1}
}
func (m *InitReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_InitReq.Unmarshal(m, b)
......@@ -141,19 +141,21 @@ func (m *InitReq) GetLibraryManagerOnly() bool {
}
type InitResp struct {
Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
PlatformsIndexErrors []string `protobuf:"bytes,2,rep,name=platforms_index_errors,json=platformsIndexErrors,proto3" json:"platforms_index_errors,omitempty"`
LibrariesIndexError string `protobuf:"bytes,3,opt,name=libraries_index_error,json=librariesIndexError,proto3" json:"libraries_index_error,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
PlatformsIndexErrors []string `protobuf:"bytes,2,rep,name=platforms_index_errors,json=platformsIndexErrors,proto3" json:"platforms_index_errors,omitempty"`
LibrariesIndexError string `protobuf:"bytes,3,opt,name=libraries_index_error,json=librariesIndexError,proto3" json:"libraries_index_error,omitempty"`
DownloadProgress *DownloadProgress `protobuf:"bytes,4,opt,name=download_progress,json=downloadProgress,proto3" json:"download_progress,omitempty"`
TaskProgress *TaskProgress `protobuf:"bytes,5,opt,name=task_progress,json=taskProgress,proto3" json:"task_progress,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *InitResp) Reset() { *m = InitResp{} }
func (m *InitResp) String() string { return proto.CompactTextString(m) }
func (*InitResp) ProtoMessage() {}
func (*InitResp) Descriptor() ([]byte, []int) {
return fileDescriptor_commands_43421ae8c8c5f1d9, []int{2}
return fileDescriptor_commands_a00a100136eab5d5, []int{2}
}
func (m *InitResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_InitResp.Unmarshal(m, b)
......@@ -194,6 +196,20 @@ func (m *InitResp) GetLibrariesIndexError() string {
return ""
}
func (m *InitResp) GetDownloadProgress() *DownloadProgress {
if m != nil {
return m.DownloadProgress
}
return nil
}
func (m *InitResp) GetTaskProgress() *TaskProgress {
if m != nil {
return m.TaskProgress
}
return nil
}
type DestroyReq struct {
Instance *Instance `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
......@@ -205,7 +221,7 @@ func (m *DestroyReq) Reset() { *m = DestroyReq{} }
func (m *DestroyReq) String() string { return proto.CompactTextString(m) }
func (*DestroyReq) ProtoMessage() {}
func (*DestroyReq) Descriptor() ([]byte, []int) {
return fileDescriptor_commands_43421ae8c8c5f1d9, []int{3}
return fileDescriptor_commands_a00a100136eab5d5, []int{3}
}
func (m *DestroyReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DestroyReq.Unmarshal(m, b)
......@@ -242,7 +258,7 @@ func (m *DestroyResp) Reset() { *m = DestroyResp{} }
func (m *DestroyResp) String() string { return proto.CompactTextString(m) }
func (*DestroyResp) ProtoMessage() {}
func (*DestroyResp) Descriptor() ([]byte, []int) {
return fileDescriptor_commands_43421ae8c8c5f1d9, []int{4}
return fileDescriptor_commands_a00a100136eab5d5, []int{4}
}
func (m *DestroyResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DestroyResp.Unmarshal(m, b)
......@@ -273,7 +289,7 @@ func (m *RescanReq) Reset() { *m = RescanReq{} }
func (m *RescanReq) String() string { return proto.CompactTextString(m) }
func (*RescanReq) ProtoMessage() {}
func (*RescanReq) Descriptor() ([]byte, []int) {
return fileDescriptor_commands_43421ae8c8c5f1d9, []int{5}
return fileDescriptor_commands_a00a100136eab5d5, []int{5}
}
func (m *RescanReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RescanReq.Unmarshal(m, b)
......@@ -312,7 +328,7 @@ func (m *RescanResp) Reset() { *m = RescanResp{} }
func (m *RescanResp) String() string { return proto.CompactTextString(m) }
func (*RescanResp) ProtoMessage() {}
func (*RescanResp) Descriptor() ([]byte, []int) {
return fileDescriptor_commands_43421ae8c8c5f1d9, []int{6}
return fileDescriptor_commands_a00a100136eab5d5, []int{6}
}
func (m *RescanResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RescanResp.Unmarshal(m, b)
......@@ -357,7 +373,7 @@ func (m *UpdateIndexReq) Reset() { *m = UpdateIndexReq{} }
func (m *UpdateIndexReq) String() string { return proto.CompactTextString(m) }
func (*UpdateIndexReq) ProtoMessage() {}
func (*UpdateIndexReq) Descriptor() ([]byte, []int) {
return fileDescriptor_commands_43421ae8c8c5f1d9, []int{7}
return fileDescriptor_commands_a00a100136eab5d5, []int{7}
}
func (m *UpdateIndexReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateIndexReq.Unmarshal(m, b)
......@@ -395,7 +411,7 @@ func (m *UpdateIndexResp) Reset() { *m = UpdateIndexResp{} }
func (m *UpdateIndexResp) String() string { return proto.CompactTextString(m) }
func (*UpdateIndexResp) ProtoMessage() {}
func (*UpdateIndexResp) Descriptor() ([]byte, []int) {
return fileDescriptor_commands_43421ae8c8c5f1d9, []int{8}
return fileDescriptor_commands_a00a100136eab5d5, []int{8}
}
func (m *UpdateIndexResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateIndexResp.Unmarshal(m, b)
......@@ -433,7 +449,7 @@ func (m *UpdateLibrariesIndexReq) Reset() { *m = UpdateLibrariesIndexReq
func (m *UpdateLibrariesIndexReq) String() string { return proto.CompactTextString(m) }
func (*UpdateLibrariesIndexReq) ProtoMessage() {}
func (*UpdateLibrariesIndexReq) Descriptor() ([]byte, []int) {
return fileDescriptor_commands_43421ae8c8c5f1d9, []int{9}
return fileDescriptor_commands_a00a100136eab5d5, []int{9}
}
func (m *UpdateLibrariesIndexReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateLibrariesIndexReq.Unmarshal(m, b)
......@@ -471,7 +487,7 @@ func (m *UpdateLibrariesIndexResp) Reset() { *m = UpdateLibrariesIndexRe
func (m *UpdateLibrariesIndexResp) String() string { return proto.CompactTextString(m) }
func (*UpdateLibrariesIndexResp) ProtoMessage() {}
func (*UpdateLibrariesIndexResp) Descriptor() ([]byte, []int) {
return fileDescriptor_commands_43421ae8c8c5f1d9, []int{10}
return fileDescriptor_commands_a00a100136eab5d5, []int{10}
}
func (m *UpdateLibrariesIndexResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UpdateLibrariesIndexResp.Unmarshal(m, b)
......@@ -525,7 +541,7 @@ const _ = grpc.SupportPackageIsVersion4
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ArduinoCoreClient interface {
// Start a new instance of the Arduino Core Service
Init(ctx context.Context, in *InitReq, opts ...grpc.CallOption) (*InitResp, error)
Init(ctx context.Context, in *InitReq, opts ...grpc.CallOption) (ArduinoCore_InitClient, error)
// Destroy an instance of the Arduino Core Service
Destroy(ctx context.Context, in *DestroyReq, opts ...grpc.CallOption) (*DestroyResp, error)
// Rescan instance of the Arduino Core Service
......@@ -562,13 +578,36 @@ func NewArduinoCoreClient(cc *grpc.ClientConn) ArduinoCoreClient {
return &arduinoCoreClient{cc}
}
func (c *arduinoCoreClient) Init(ctx context.Context, in *InitReq, opts ...grpc.CallOption) (*InitResp, error) {
out := new(InitResp)
err := c.cc.Invoke(ctx, "/cc.arduino.core.rpc.ArduinoCore/Init", in, out, opts...)
func (c *arduinoCoreClient) Init(ctx context.Context, in *InitReq, opts ...grpc.CallOption) (ArduinoCore_InitClient, error) {
stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[0], "/cc.arduino.core.rpc.ArduinoCore/Init", opts...)
if err != nil {
return nil, err
}
return out, nil
x := &arduinoCoreInitClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type ArduinoCore_InitClient interface {
Recv() (*InitResp, error)
grpc.ClientStream
}
type arduinoCoreInitClient struct {
grpc.ClientStream
}
func (x *arduinoCoreInitClient) Recv() (*InitResp, error) {
m := new(InitResp)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *arduinoCoreClient) Destroy(ctx context.Context, in *DestroyReq, opts ...grpc.CallOption) (*DestroyResp, error) {
......@@ -590,7 +629,7 @@ func (c *arduinoCoreClient) Rescan(ctx context.Context, in *RescanReq, opts ...g
}
func (c *arduinoCoreClient) UpdateIndex(ctx context.Context, in *UpdateIndexReq, opts ...grpc.CallOption) (ArduinoCore_UpdateIndexClient, error) {
stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[0], "/cc.arduino.core.rpc.ArduinoCore/UpdateIndex", opts...)
stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[1], "/cc.arduino.core.rpc.ArduinoCore/UpdateIndex", opts...)
if err != nil {
return nil, err
}
......@@ -622,7 +661,7 @@ func (x *arduinoCoreUpdateIndexClient) Recv() (*UpdateIndexResp, error) {
}
func (c *arduinoCoreClient) UpdateLibrariesIndex(ctx context.Context, in *UpdateLibrariesIndexReq, opts ...grpc.CallOption) (ArduinoCore_UpdateLibrariesIndexClient, error) {
stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[1], "/cc.arduino.core.rpc.ArduinoCore/UpdateLibrariesIndex", opts...)
stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[2], "/cc.arduino.core.rpc.ArduinoCore/UpdateLibrariesIndex", opts...)
if err != nil {
return nil, err
}
......@@ -663,7 +702,7 @@ func (c *arduinoCoreClient) BoardDetails(ctx context.Context, in *BoardDetailsRe
}
func (c *arduinoCoreClient) BoardAttach(ctx context.Context, in *BoardAttachReq, opts ...grpc.CallOption) (ArduinoCore_BoardAttachClient, error) {
stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[2], "/cc.arduino.core.rpc.ArduinoCore/BoardAttach", opts...)
stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[3], "/cc.arduino.core.rpc.ArduinoCore/BoardAttach", opts...)
if err != nil {
return nil, err
}
......@@ -704,7 +743,7 @@ func (c *arduinoCoreClient) BoardList(ctx context.Context, in *BoardListReq, opt
}
func (c *arduinoCoreClient) Compile(ctx context.Context, in *CompileReq, opts ...grpc.CallOption) (ArduinoCore_CompileClient, error) {
stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[3], "/cc.arduino.core.rpc.ArduinoCore/Compile", opts...)
stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[4], "/cc.arduino.core.rpc.ArduinoCore/Compile", opts...)
if err != nil {
return nil, err
}
......@@ -736,7 +775,7 @@ func (x *arduinoCoreCompileClient) Recv() (*CompileResp, error) {
}
func (c *arduinoCoreClient) PlatformInstall(ctx context.Context, in *PlatformInstallReq, opts ...grpc.CallOption) (ArduinoCore_PlatformInstallClient, error) {
stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[4], "/cc.arduino.core.rpc.ArduinoCore/PlatformInstall", opts...)
stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[5], "/cc.arduino.core.rpc.ArduinoCore/PlatformInstall", opts...)
if err != nil {
return nil, err
}
......@@ -768,7 +807,7 @@ func (x *arduinoCorePlatformInstallClient) Recv() (*PlatformInstallResp, error)
}
func (c *arduinoCoreClient) PlatformDownload(ctx context.Context, in *PlatformDownloadReq, opts ...grpc.CallOption) (ArduinoCore_PlatformDownloadClient, error) {
stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[5], "/cc.arduino.core.rpc.ArduinoCore/PlatformDownload", opts...)
stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[6], "/cc.arduino.core.rpc.ArduinoCore/PlatformDownload", opts...)
if err != nil {
return nil, err
}
......@@ -800,7 +839,7 @@ func (x *arduinoCorePlatformDownloadClient) Recv() (*PlatformDownloadResp, error
}
func (c *arduinoCoreClient) PlatformUninstall(ctx context.Context, in *PlatformUninstallReq, opts ...grpc.CallOption) (ArduinoCore_PlatformUninstallClient, error) {
stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[6], "/cc.arduino.core.rpc.ArduinoCore/PlatformUninstall", opts...)
stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[7], "/cc.arduino.core.rpc.ArduinoCore/PlatformUninstall", opts...)
if err != nil {
return nil, err
}
......@@ -832,7 +871,7 @@ func (x *arduinoCorePlatformUninstallClient) Recv() (*PlatformUninstallResp, err
}
func (c *arduinoCoreClient) PlatformUpgrade(ctx context.Context, in *PlatformUpgradeReq, opts ...grpc.CallOption) (ArduinoCore_PlatformUpgradeClient, error) {
stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[7], "/cc.arduino.core.rpc.ArduinoCore/PlatformUpgrade", opts...)
stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[8], "/cc.arduino.core.rpc.ArduinoCore/PlatformUpgrade", opts...)
if err != nil {
return nil, err
}
......@@ -864,7 +903,7 @@ func (x *arduinoCorePlatformUpgradeClient) Recv() (*PlatformUpgradeResp, error)
}
func (c *arduinoCoreClient) Upload(ctx context.Context, in *UploadReq, opts ...grpc.CallOption) (ArduinoCore_UploadClient, error) {
stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[8], "/cc.arduino.core.rpc.ArduinoCore/Upload", opts...)
stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[9], "/cc.arduino.core.rpc.ArduinoCore/Upload", opts...)
if err != nil {
return nil, err
}
......@@ -914,7 +953,7 @@ func (c *arduinoCoreClient) PlatformList(ctx context.Context, in *PlatformListRe
}
func (c *arduinoCoreClient) LibraryDownload(ctx context.Context, in *LibraryDownloadReq, opts ...grpc.CallOption) (ArduinoCore_LibraryDownloadClient, error) {
stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[9], "/cc.arduino.core.rpc.ArduinoCore/LibraryDownload", opts...)
stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[10], "/cc.arduino.core.rpc.ArduinoCore/LibraryDownload", opts...)
if err != nil {
return nil, err
}
......@@ -946,7 +985,7 @@ func (x *arduinoCoreLibraryDownloadClient) Recv() (*LibraryDownloadResp, error)
}
func (c *arduinoCoreClient) LibraryInstall(ctx context.Context, in *LibraryInstallReq, opts ...grpc.CallOption) (ArduinoCore_LibraryInstallClient, error) {
stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[10], "/cc.arduino.core.rpc.ArduinoCore/LibraryInstall", opts...)
stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[11], "/cc.arduino.core.rpc.ArduinoCore/LibraryInstall", opts...)
if err != nil {
return nil, err
}
......@@ -978,7 +1017,7 @@ func (x *arduinoCoreLibraryInstallClient) Recv() (*LibraryInstallResp, error) {
}
func (c *arduinoCoreClient) LibraryUninstall(ctx context.Context, in *LibraryUninstallReq, opts ...grpc.CallOption) (ArduinoCore_LibraryUninstallClient, error) {
stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[11], "/cc.arduino.core.rpc.ArduinoCore/LibraryUninstall", opts...)
stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[12], "/cc.arduino.core.rpc.ArduinoCore/LibraryUninstall", opts...)
if err != nil {
return nil, err
}
......@@ -1010,7 +1049,7 @@ func (x *arduinoCoreLibraryUninstallClient) Recv() (*LibraryUninstallResp, error
}
func (c *arduinoCoreClient) LibraryUpgradeAll(ctx context.Context, in *LibraryUpgradeAllReq, opts ...grpc.CallOption) (ArduinoCore_LibraryUpgradeAllClient, error) {
stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[12], "/cc.arduino.core.rpc.ArduinoCore/LibraryUpgradeAll", opts...)
stream, err := c.cc.NewStream(ctx, &_ArduinoCore_serviceDesc.Streams[13], "/cc.arduino.core.rpc.ArduinoCore/LibraryUpgradeAll", opts...)
if err != nil {
return nil, err
}
......@@ -1062,7 +1101,7 @@ func (c *arduinoCoreClient) LibraryList(ctx context.Context, in *LibraryListReq,
// ArduinoCoreServer is the server API for ArduinoCore service.
type ArduinoCoreServer interface {
// Start a new instance of the Arduino Core Service
Init(context.Context, *InitReq) (*InitResp, error)
Init(*InitReq, ArduinoCore_InitServer) error
// Destroy an instance of the Arduino Core Service
Destroy(context.Context, *DestroyReq) (*DestroyResp, error)
// Rescan instance of the Arduino Core Service
......@@ -1095,22 +1134,25 @@ func RegisterArduinoCoreServer(s *grpc.Server, srv ArduinoCoreServer) {
s.RegisterService(&_ArduinoCore_serviceDesc, srv)
}
func _ArduinoCore_Init_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(InitReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ArduinoCoreServer).Init(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/cc.arduino.core.rpc.ArduinoCore/Init",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ArduinoCoreServer).Init(ctx, req.(*InitReq))
func _ArduinoCore_Init_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(InitReq)
if err := stream.RecvMsg(m); err != nil {
return err
}
return interceptor(ctx, in, info, handler)
return srv.(ArduinoCoreServer).Init(m, &arduinoCoreInitServer{stream})
}
type ArduinoCore_InitServer interface {
Send(*InitResp) error
grpc.ServerStream
}
type arduinoCoreInitServer struct {
grpc.ServerStream
}
func (x *arduinoCoreInitServer) Send(m *InitResp) error {
return x.ServerStream.SendMsg(m)
}
func _ArduinoCore_Destroy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
......@@ -1534,10 +1576,6 @@ var _ArduinoCore_serviceDesc = grpc.ServiceDesc{
ServiceName: "cc.arduino.core.rpc.ArduinoCore",
HandlerType: (*ArduinoCoreServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Init",
Handler: _ArduinoCore_Init_Handler,
},
{
MethodName: "Destroy",
Handler: _ArduinoCore_Destroy_Handler,
......@@ -1572,6 +1610,11 @@ var _ArduinoCore_serviceDesc = grpc.ServiceDesc{
},
},
Streams: []grpc.StreamDesc{
{
StreamName: "Init",
Handler: _ArduinoCore_Init_Handler,
ServerStreams: true,
},
{
StreamName: "UpdateIndex",
Handler: _ArduinoCore_UpdateIndex_Handler,
......@@ -1641,65 +1684,67 @@ var _ArduinoCore_serviceDesc = grpc.ServiceDesc{
Metadata: "commands.proto",
}
func init() { proto.RegisterFile("commands.proto", fileDescriptor_commands_43421ae8c8c5f1d9) }
func init() { proto.RegisterFile("commands.proto", fileDescriptor_commands_a00a100136eab5d5) }
var fileDescriptor_commands_43421ae8c8c5f1d9 = []byte{
// 905 bytes of a gzipped FileDescriptorProto
var fileDescriptor_commands_a00a100136eab5d5 = []byte{
// 939 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xb4, 0x97, 0xdd, 0x72, 0xdb, 0x44,
0x14, 0xc7, 0x71, 0xdb, 0x69, 0xe2, 0xe3, 0x8f, 0xa6, 0xdb, 0x00, 0x1e, 0x0d, 0xa5, 0x41, 0xb5,
0x93, 0x96, 0xa1, 0x6e, 0x27, 0x70, 0xc3, 0x0d, 0x33, 0x6e, 0x5c, 0x20, 0xd3, 0x02, 0x1d, 0x81,
0x67, 0x98, 0xc2, 0xe0, 0x59, 0x4b, 0x1b, 0x67, 0xa7, 0xb2, 0x56, 0xec, 0xca, 0x14, 0x3f, 0x00,
0xcf, 0xc3, 0x05, 0x97, 0xbc, 0x1c, 0xbb, 0xab, 0x5d, 0xc5, 0x72, 0x24, 0x59, 0x34, 0xd3, 0x2b,
0x5b, 0xfb, 0xff, 0x9d, 0x8f, 0x3d, 0xf9, 0x1f, 0x25, 0x81, 0xae, 0xcf, 0x16, 0x0b, 0x1c, 0x05,
0x62, 0x18, 0x73, 0x96, 0x30, 0x74, 0xc7, 0xf7, 0x87, 0x98, 0x07, 0x4b, 0x1a, 0xb1, 0xa1, 0xcf,
0x38, 0x19, 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0x54, 0xc1, 0xcf, 0xd0, 0x34, 0x87, 0x5a, 0x61, 0xf7, 0xab, 0xdc, 0xac, 0xc0, 0x3a, 0xab, 0x21,
0x11, 0x3f, 0xed, 0xbc, 0x71, 0xc7, 0x34, 0xb9, 0x98, 0x8e, 0x24, 0x32, 0x79, 0x6c, 0x70, 0xfb,
0xf9, 0xc8, 0x0f, 0xe9, 0x63, 0xe9, 0x35, 0xba, 0xa1, 0xff, 0x15, 0xfb, 0xf2, 0xbf, 0x00, 0x00,
0x00, 0xff, 0xff, 0x45, 0xa1, 0x67, 0x52, 0x00, 0x0e, 0x00, 0x00,
}
......@@ -34,7 +34,7 @@ service ArduinoCore {
//-------------------
// Start a new instance of the Arduino Core Service
rpc Init(InitReq) returns (InitResp) {}
rpc Init(InitReq) returns (stream InitResp) {}
// Destroy an instance of the Arduino Core Service
rpc Destroy(DestroyReq) returns (DestroyResp) {}
......@@ -115,6 +115,8 @@ message InitResp {
Instance instance = 1;
repeated string platforms_index_errors = 2;
string libraries_index_error = 3;
DownloadProgress download_progress = 4;
TaskProgress task_progress = 5;
}
message DestroyReq { Instance instance = 1; }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment