diff options
author | 2019-12-17 15:14:15 +0100 | |
---|---|---|
committer | 2019-12-17 15:14:36 +0100 | |
commit | 020e27fe459b0ed66a48b46cb2878520ed4a517b (patch) | |
tree | 9de95206d06bd9654cb5e40e81902e7b77cafedc /plugin_lua.go | |
parent | ca3672df2ad75cbb866b08ca79320a75e30a55ce (diff) | |
download | alps-020e27fe459b0ed66a48b46cb2878520ed4a517b.tar.gz alps-020e27fe459b0ed66a48b46cb2878520ed4a517b.tar.bz2 alps-020e27fe459b0ed66a48b46cb2878520ed4a517b.zip |
Add Context to Plugin.Inject
This allows to access the request metadata and the session from injectors.
Diffstat (limited to 'plugin_lua.go')
-rw-r--r-- | plugin_lua.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin_lua.go b/plugin_lua.go index 816c7f1..8291a20 100644 --- a/plugin_lua.go +++ b/plugin_lua.go @@ -86,7 +86,7 @@ func (p *luaPlugin) inject(name string, data RenderData) error { return nil } -func (p *luaPlugin) Inject(name string, data RenderData) error { +func (p *luaPlugin) Inject(ctx *Context, name string, data RenderData) error { if err := p.inject("*", data); err != nil { return err } |