This package helps you to write Julia application for PaaS Cocaine.
Pkg.clone("https://github.com/wildart/Msgpack.jl.git")
Pkg.clone("https://github.com/wildart/Cocaine.jl.git")
This's an example of 'echo' application:
using Cocaine
function echo(req::CocaineRequest, resp::CocaineResponse)
data = read(req)
write(resp, data)
end
binds = Dict{String, Function}({
"ping" => echo
})
worker(binds)
All data sent to and received from service is msgpacked.
Licensed under the GPLv3.
05/25/2014
almost 7 years ago
26 commits