package main import ( "github.com/jrallison/go-workers" ) func myJob(message *workers.Msg) { // do something with your message // message.Jid() // message.Args() is a wrapper around go-simplejson (http://godoc.org/github.com/bitly/go-simplejson) } type myMiddleware struct{} func (r *myMiddleware) Call(queue string, message *workers.Msg, next func() bool) (acknowledge bool) { // do something before