subutai-io / cdn

Gorjun is a golang replacement for Kurjun project.
Apache License 2.0
19 stars 13 forks source link

Add a new-formatted function that builds a query for retviever #418

Closed azretkenzhaliev closed 6 years ago

azretkenzhaliev commented 6 years ago

For refactoring purposes, we need to make a server application that will exist along with the current CDN application. Long in short, it will look like

* /
  * apt/
  * auth/
  * ...
  * server/
    * main.go
    * retriever.go
    * callbacks.go
  * ...

We need to add a function that builds a query for the retriever.

The callback will build a query with a special method and pass this query to the retriever function. Retriever function will do its search using the search function and return a slice of files to the callback function.

azretkenzhaliev commented 6 years ago

Done in refactor branch.