Skip to content

Commit ca16a57

Browse files
authored
fix(chore): re-implement surrogate storage (#317)
* feat: bump version and deps * feat: bump version * fix: tyk and traefik body request consumption, closes #320
1 parent 7862e9d commit ca16a57

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+861
-2314
lines changed

Makefile

+8-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ DC=docker-compose
77
DC_BUILD=$(DC) build
88
DC_EXEC=$(DC) exec
99
PLUGINS_LIST=beego caddy chi dotweb echo fiber gin go-zero goyave kratos roadrunner skipper traefik tyk webgo souin
10+
MOD_PLUGINS_LIST=beego caddy chi dotweb echo fiber gin go-zero goyave kratos roadrunner skipper webgo
1011

1112
base-build-and-run-%:
1213
cd plugins/$* && $(MAKE) prepare
@@ -68,8 +69,13 @@ bump-version:
6869
test $(to)
6970
sed -i '' 's/version: $(from)/version: $(to)/' README.md
7071
for plugin in $(PLUGINS_LIST) ; do \
71-
sed -i '' 's/github.com\/darkweak\/souin $(from)/github.com\/darkweak\/souin $(to)/' plugins/$$plugin/go.mod ; \
72-
done
72+
sed -i '' 's/github.com\/darkweak\/souin $(from)/github.com\/darkweak\/souin $(to)/' plugins/$$plugin/go.mod ; \
73+
done
74+
75+
bump-plugins-deps: ## Bump plugins dependencies
76+
for plugin in $(MOD_PLUGINS_LIST) ; do \
77+
echo "Update $$plugin..." && cd plugins/$$plugin && go get -u ./... && cd - ; \
78+
done
7379

7480
coverage: ## Show code coverage
7581
$(DC_EXEC) souin go test ./... -coverprofile cover.out

README.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ experimental:
925925
plugins:
926926
souin:
927927
moduleName: github.com/darkweak/souin
928-
version: v1.6.32
928+
version: v1.6.33
929929
```
930930
After that you can declare either the whole configuration at once in the middleware block or by service. See the examples below.
931931
```yaml
@@ -1112,3 +1112,10 @@ Thanks to these users for contributing or helping this project in any way
11121112
* [Kiss Karoly](https://github.com/kresike)
11131113
* [Matthias von Bargen](https://github.com/mattvb91)
11141114
* [Fred Liang](https://github.com/fredliang44)
1115+
* [Kiril Vladimirov](https://github.com/vladimiroff)
1116+
* [Viktor Szépe](https://github.com/szepeviktor)
1117+
* [Omar Ramadan](https://github.com/kkroo)
1118+
* [Jonasengelmann](https://github.com/jonasengelmann)
1119+
* [JacquesDurand](https://github.com/jacquesdurand)
1120+
* [Frederic Houle](https://github.com/frederichoule)
1121+
* [Valery Piashchynski](https://github.com/rustatian)

cache/surrogate/README.md

-24
This file was deleted.

cache/surrogate/providers/akamai.go

-72
This file was deleted.

cache/surrogate/providers/akamai_test.go

-83
This file was deleted.

cache/surrogate/providers/cloudflare.go

-92
This file was deleted.

0 commit comments

Comments
 (0)