(ctx context.Context, req *deleteGraphRequest)
| 536 | } |
| 537 | |
| 538 | func (s *server) deleteGraph(ctx context.Context, req *deleteGraphRequest) (*deleteGraphResponse, error) { |
| 539 | gID := db.GraphID(req.GraphUUID) |
| 540 | |
| 541 | if err := s.db.DeleteGraph(ctx, gID); err != nil { |
| 542 | return nil, httperr.Internal("failed to delete graph: %w", err) |
| 543 | } |
| 544 | |
| 545 | return &deleteGraphResponse{}, nil |
| 546 | } |
| 547 | |
| 548 | type getGraphEncryptKeysRequest struct { |
| 549 | GraphUUID string `json:"GraphUUID"` |
nothing calls this directly
no test coverage detected