Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Lua-scripts to generate random data for producing #2

Open
ArtyomKomarenko opened this issue Sep 29, 2021 · 0 comments
Open

Comments

@ArtyomKomarenko
Copy link

To generate some specific data would be great to support Lua-script.

For example, if my script is in funcs.lua:

function randomCardNumber() {
    return "4242424242424242"
}

It can be passed to input like:

$ protokaf produce CardRequest \
  --lua funcs.lua
  --data '{"card": {{randomCardNumber | quote}}}'
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant