Add delete option
All checks were successful
Build and Push Docker Image / build_and_push (push) Successful in 1m57s

This commit is contained in:
Arnaud Delcasse
2026-01-13 20:27:33 +01:00
parent 7adec6ee1d
commit eb884ab52d
11 changed files with 670 additions and 927 deletions

View File

@@ -103,6 +103,16 @@ func (s GroupsManagementServerImpl) Unsubscribe(ctx context.Context, req *Unsubs
Ok: true,
}, nil
}
func (s GroupsManagementServerImpl) DeleteGroup(ctx context.Context, req *DeleteGroupRequest) (*DeleteGroupResponse, error) {
err := s.handler.DeleteGroup(req.Id)
if err != nil {
return nil, status.Errorf(codes.Internal, "could not delete group: %v", err)
}
return &DeleteGroupResponse{
Ok: true,
}, nil
}
func (s GroupsManagementServerImpl) mustEmbedUnimplementedGroupsManagementServer() {}
func Run(done chan error, cfg *viper.Viper, handler handlers.GroupsManagementHandler) {