Skip to content

Commit

Permalink
fix(chore): re-implement surrogate storage (#317)
Browse files Browse the repository at this point in the history
* feat: bump version and deps

* feat: bump version

* fix: tyk and traefik body request consumption, closes #320
  • Loading branch information
darkweak authored Mar 10, 2023
1 parent 7862e9d commit ca16a57
Show file tree
Hide file tree
Showing 58 changed files with 861 additions and 2,314 deletions.
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ DC=docker-compose
DC_BUILD=$(DC) build
DC_EXEC=$(DC) exec
PLUGINS_LIST=beego caddy chi dotweb echo fiber gin go-zero goyave kratos roadrunner skipper traefik tyk webgo souin
MOD_PLUGINS_LIST=beego caddy chi dotweb echo fiber gin go-zero goyave kratos roadrunner skipper webgo

base-build-and-run-%:
cd plugins/$* && $(MAKE) prepare
Expand Down Expand Up @@ -68,8 +69,13 @@ bump-version:
test $(to)
sed -i '' 's/version: $(from)/version: $(to)/' README.md
for plugin in $(PLUGINS_LIST) ; do \
sed -i '' 's/github.com\/darkweak\/souin $(from)/github.com\/darkweak\/souin $(to)/' plugins/$$plugin/go.mod ; \
done
sed -i '' 's/github.com\/darkweak\/souin $(from)/github.com\/darkweak\/souin $(to)/' plugins/$$plugin/go.mod ; \
done

bump-plugins-deps: ## Bump plugins dependencies
for plugin in $(MOD_PLUGINS_LIST) ; do \
echo "Update $$plugin..." && cd plugins/$$plugin && go get -u ./... && cd - ; \
done

coverage: ## Show code coverage
$(DC_EXEC) souin go test ./... -coverprofile cover.out
Expand Down
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ experimental:
plugins:
souin:
moduleName: github.com/darkweak/souin
version: v1.6.32
version: v1.6.33
```
After that you can declare either the whole configuration at once in the middleware block or by service. See the examples below.
```yaml
Expand Down Expand Up @@ -1112,3 +1112,10 @@ Thanks to these users for contributing or helping this project in any way
* [Kiss Karoly](https://github.com/kresike)
* [Matthias von Bargen](https://github.com/mattvb91)
* [Fred Liang](https://github.com/fredliang44)
* [Kiril Vladimirov](https://github.com/vladimiroff)
* [Viktor Szépe](https://github.com/szepeviktor)
* [Omar Ramadan](https://github.com/kkroo)
* [Jonasengelmann](https://github.com/jonasengelmann)
* [JacquesDurand](https://github.com/jacquesdurand)
* [Frederic Houle](https://github.com/frederichoule)
* [Valery Piashchynski](https://github.com/rustatian)
24 changes: 0 additions & 24 deletions cache/surrogate/README.md

This file was deleted.

72 changes: 0 additions & 72 deletions cache/surrogate/providers/akamai.go

This file was deleted.

83 changes: 0 additions & 83 deletions cache/surrogate/providers/akamai_test.go

This file was deleted.

92 changes: 0 additions & 92 deletions cache/surrogate/providers/cloudflare.go

This file was deleted.

Loading

0 comments on commit ca16a57

Please sign in to comment.