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

Make generic for calling from anywhere #5

Open
deitch opened this issue Nov 29, 2016 · 2 comments
Open

Make generic for calling from anywhere #5

deitch opened this issue Nov 29, 2016 · 2 comments

Comments

@deitch
Copy link

deitch commented Nov 29, 2016

We have handlers and callers for JS and Python. We should have generic. Recommend one of 2 ways (actually both):

  1. Explicitly expose the API. Let any app know "if I make a network call to the following address with the following parameters, a function will be invoked".
  2. Create a static binary (probably in go) that know how to make a request and listen to requests.

Allows any container to listen and request, both using a convenient binary and native API.

@bfirsh
Copy link
Owner

bfirsh commented Nov 30, 2016

Related to this, an idea that @justincormack has been working on is being able to also use Funker functions with stdin/out so you can test them on the command-line.

Something like:

$ docker run -i add
{"x": 1, "y": 2}^D
3

or, perhaps:

$ docker run -i add '{"x": 1, "y": 2}'
3

@deitch
Copy link
Author

deitch commented Nov 30, 2016

Now that I like. It keeps with the Unix philosophy of text streams, and makes it real easy to compose manually.

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

2 participants