go-rque
Simple queue build with RethinkDB. Requires go-emitter.
View the docs.
Installation
$ go get github.com/frozzare/go-rque
Example
package main
import (
"fmt"
"github.com/frozzare/go-emitter"
"github.com/frozzare/go-rque"
)
func main() {
e := emitter.New()
e.On("hello", func(job rque.Job) {
fmt.Println("hello")
})
rque.Run(rque.Config{
Address: "localhost:28015",
Database: "db",
Table: "queue",
Emitter: e,
})
}
JSON row in the database:
{
"name": "hello",
"data": {}
}
License
MIT © Fredrik Forsmo