Request cancellations support added to Middlewares.

Some core functions refactored as middlewares.
Fixed race condition in exporting system. Now, only one goroutine will be responsible for exporting. This fixes concurrency issues on writing.
This commit is contained in:
Musab Gültekin
2019-06-15 22:27:46 +03:00
parent 83a7b9eb87
commit ddff3aee25
6 changed files with 71 additions and 95 deletions

View File

@@ -16,7 +16,6 @@ type Response struct {
Meta map[string]interface{}
Geziyor *Geziyor
Exports chan interface{}
}
// JoinURL joins base response URL and provided relative URL.