github.com/gobuffalo/gocraft-work-adapter
go get github.com/gobuffalo/gocraft-work-adapter

github.com/gobuffalo/gocraft-work-adapter

Implements the github.com/gobuffalo/buffalo/worker.Worker interface using the github.com/gocraft/work package.

go get github.com/gobuffalo/gocraft-work-adapter
Readme

gocraft/work Adapter for Buffalo

This package implements the github.com/gobuffalo/buffalo/worker.Worker interface using the github.com/gocraft/work package.

Setup

import "github.com/gobuffalo/gocraft-work-adapter"
import "github.com/gomodule/redigo/redis"

// ...

buffalo.New(buffalo.Options{
  // ...
  Worker: gwa.New(gwa.Options{
    Pool: &redis.Pool{
      MaxActive: 5,
      MaxIdle:   5,
      Wait:      true,
      Dial: func() (redis.Conn, error) {
        return redis.Dial("tcp", ":6379")
      },
    },
    Name:           "myapp",
    MaxConcurrency: 25,
  }),
  // ...
})

GitHub Stars

11

LAST COMMIT

4yrs ago

MAINTAINERS

0

CONTRIBUTORS

3

OPEN ISSUES

1

OPEN PRs

0
VersionTagPublished
v0.0.0-20180331165229-60818d397c59
1yr ago
v0.0.0-20180714213200-7d6504f1dffe
3yrs ago
No alternatives found
No tutorials found
Add a tutorial