lua-resty-http Synopsis localevent=require"resty.consul.event"locale,err=event.new({host="127.0.0.1",port=8500, })iferrthenngx.log(ngx.ERR,err)ende:watch("foo",function(event)ngx.log(ngx.INFO,"i got",ngx.decode_base64(event.payload))end) ...
http { lua_package_path "/path/to/lua-resty-worker-events/lib/?.lua;;"; # the size depends on the number of event to handle: lua_shared_dict process_events 1m; init_worker_by_lua_block { local ev = require "resty.worker.events" local handler = function(data, event, source, pid)...
Kong / lua-resty-events Public Notifications Fork 13 Star 29 Releases 0.3.1 0.3.1 Latest Latest Compare chronolaw released this 28 Oct 07:34 0.3.1 bc85295 What's Changed docs(readme): production ready now style(lib): style clean for logging worker info refactor(lib): ...
http { lua_package_path "/path/to/lua-resty-worker-events/lib/?.lua;;"; # the size depends on the number of event to handle: lua_shared_dict process_events 1m; init_worker_by_lua_block { local ev = require "resty.worker.events" local handler = function(data, event, sourc...