Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Q
query-service
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GraphPolaris
Microservices
query-service
Commits
a51b5e68
Commit
a51b5e68
authored
3 years ago
by
Lelieveld,J.R.J. (Joris)
Browse files
Options
Downloads
Patches
Plain Diff
One empty line because the linter demanded so
parent
f42f9ee2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
internal/usecases/convertquery/aql.go
+4
-2
4 additions, 2 deletions
internal/usecases/convertquery/aql.go
with
4 additions
and
2 deletions
internal/usecases/convertquery/aql.go
+
4
−
2
View file @
a51b5e68
...
...
@@ -5,7 +5,9 @@ import (
"fmt"
)
/* ConvertQuery converts a json string to an AQL query
/*
ConvertQuery converts a json string to an AQL query
Parameters: jsonMsg is the JSON file directly outputted by the drag and drop query builder in the frontend
Return: a string containing the corresponding AQL query and an error */
...
...
@@ -21,7 +23,7 @@ func (s *Service) ConvertQuery(jsonMsg *[]byte) (*string, error) {
return
result
,
nil
}
/*convertJSONtoStruct reads a JSON file and sorts the data into the appropriate structs
/*
convertJSONtoStruct reads a JSON file and sorts the data into the appropriate structs
Parameters: jsonMsg is the JSON file directly outputted by the drag and drop query builder in the frontend
Return: parsedJSON is a struct with the same structure and holding the same data as jsonMsg
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment