go-worker

command module
v0.0.0-...-98e9760 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2022 License: MIT Imports: 17 Imported by: 0

README

worker 🍱

CI Go Report Card

Run jobs using containerized functions. The worker keeps a pool of warm containers to reduce overhead, so new job are executed as they arrive.

Code execution is handled by the agent.

Get started

Build

go build -v

Run

Start worker with:

./worker [-listen ":8090"] [-image "hello-python"] [-min-size 10]

Usage

curl -X POST -H "Content-Type: application/json" \
  -d '{"ID": "1", "Payload": "hello world"}' \
  http://0.0.0.0:8090/run

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL