Closed 007slm closed 4 months ago
I'm not familiar with Go PDK, but I guess you may looking for this: https://pkg.go.dev/github.com/Kong/go-pdk@v0.10.0/ctx#Ctx.SetShared
We encourage questions like this in the Discussions forum in the main Kong repo: https://github.com/Kong/kong/discussions.
I am developing a rate limiting plugin in Golang. In the plugin's logic, I need to generate a rate limiting object that is related to the current request URL during the access phase for QPS calculation. Then, in the response phase, I need to access this request-specific rate limiting object for further computation. How should I share this object between the two phases?