Commit Graph

5 Commits

Author SHA1 Message Date
Javier
60ba6bd20c feat(*) add back header and body filter phases (#31) 2020-06-17 11:34:53 -03:00
Hisham Muhammad
aba3dd5b68 fix(server) remove header_filter and body_filter handling for now
Remove filter phases for now, because those can't be handled efficiently
by the Kong side: one cannot open non-blocking sockets in `header_filter`
and `body_filter` so we avoid those phases when doing Go plugins to avoid
using blocking sockets.
2019-12-16 13:02:20 -08:00
Javier
f8c9246577 refactor(*) no json (#1)
* it runs... something

* use strings for dict keys

* small cleanups / better locking

* add StepXXX RPC methods to express non-primitive PDK return types

* remove commented code

* define recognizable error type

* config schema as a structure, not a string that happens to be decodable

* changed Kong capitalization because of Go

* reread plugin if modified on disk

* docs about event cycle and callback return types

* The standard package can't reload Plugins

* add status report, including some timekeeping

* expire instances after 60sec idle

* a bit of logging

* send PID on status and on connection (as unrequested notification)
2019-12-11 14:16:51 -08:00
Javier Guerra
b59c19779f fix(*) pass pointers to share lock
Also lock the plugin when doing symbol lookup.
2019-12-11 14:16:51 -08:00
Javier Guerra
9c17f1c76f refactor(*) split for readability
Split event and instance handling code into their own modules.
2019-12-11 14:16:51 -08:00