Add delete option
All checks were successful
Build and Push Docker Image / build_and_push (push) Successful in 1m57s
All checks were successful
Build and Push Docker Image / build_and_push (push) Successful in 1m57s
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user