apache / apisix-go-plugin-runner

Go Plugin Runner for APISIX
https://apisix.apache.org/
Apache License 2.0
169 stars 69 forks source link

request help: Remove the `util.RPCTest` hack #33

Closed spacewander closed 2 years ago

spacewander commented 3 years ago

Issue description

The hack here is just for test. However, we can remove this hack if we use a map to store the type->handler mapping, instead of the case ... block.

Environment

spacewander commented 3 years ago

See https://github.com/apache/apisix-go-plugin-runner/blob/6d1933ab4835bfbec2a02cc035660b5496df414f/internal/server/server.go#L76