fnd:功能即服务——基于 docker 的简约无服务器代码运行器

时间:2021-07-03 09:49:03
【文件属性】:
文件名称:fnd:功能即服务——基于 docker 的简约无服务器代码运行器
文件大小:6KB
文件格式:ZIP
更新时间:2021-07-03 09:49:03
Ruby 找到 fnd 是“function daemon”的缩写,是一个能够按需存储和运行 ruby​​ 代码的守护程序。 将其视为动态 API。 这个怎么运作 考虑以下 Ruby 代码: # say_hello.rb "Hello #{ name } " 您可以通过运行将其上传到 fnd 守护程序: $ fn upload say_hello.rb --to localhost:8080 上传后,守护程序会加载您的代码并通过 HTTP API 托管它。 例如,您可以从命令行调用它: $ curl -d " { \" name \" : \" fnd \" } " http://localhost:8080/say_hello -H " Content-type: application/json " Hello fnd 安装 $ gem install fnd 或者使用我们的 Do
【文件预览】:
fnd-master
----fnd.gemspec(765B)
----Dockerfile(650B)
----lib()
--------fnd()
--------fnd.rb(15B)
----Gemfile(38B)
----Rakefile(256B)
----LICENSE(1KB)
----README.md(1KB)
----.gitignore(573B)
----bin()
--------fnd(96B)
--------fn(84B)

网友评论