diff options
author | 2020-06-03 17:41:30 +0000 | |
---|---|---|
committer | 2020-06-03 17:41:30 +0000 | |
commit | 0c22bafd470e36647157b6d01221cb17841f360a (patch) | |
tree | b53301c3231f40725b8d7f1f8700f4c37bb0b384 /src/rsync/pkg | |
parent | a6e2a3a65a6e4f3f1d964578ae4e60c6f9dd1184 (diff) | |
parent | 398cee00458dc8f9ddf0b9dd0387bfc01094f017 (diff) |
Merge "Add UninstallApp call to grpc"
Diffstat (limited to 'src/rsync/pkg')
-rw-r--r-- | src/rsync/pkg/grpc/installappserver/installappserver.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/rsync/pkg/grpc/installappserver/installappserver.go b/src/rsync/pkg/grpc/installappserver/installappserver.go index 8a293cd6..28b4a585 100644 --- a/src/rsync/pkg/grpc/installappserver/installappserver.go +++ b/src/rsync/pkg/grpc/installappserver/installappserver.go @@ -38,6 +38,17 @@ func (cs *installappServer) InstallApp(ctx context.Context, req *installapp.Inst return &installapp.InstallAppResponse{AppContextInstalled: true}, nil } +func (cs *installappServer) UninstallApp(ctx context.Context, req *installapp.UninstallAppRequest) (*installapp.UninstallAppResponse, error) { + uninstallAppReq, _ := json.Marshal(req) + log.Println("GRPC Server received uninstallAppRequest: ", string(uninstallAppReq)) + + // Try terminating the comp app here + // + // + + return &installapp.UninstallAppResponse{AppContextUninstalled: true}, nil +} + // NewInstallAppServer exported func NewInstallAppServer() *installappServer { s := &installappServer{} |