apollo-backend/internal/worker/worker.go
Andre Medeiros 55c45592ac tweak params
2021-07-13 20:09:44 -04:00

15 lines
393 B
Go

package worker
import (
"github.com/DataDog/datadog-go/statsd"
"github.com/adjust/rmq/v4"
"github.com/go-redis/redis/v8"
"github.com/jackc/pgx/v4/pgxpool"
"github.com/sirupsen/logrus"
)
type NewWorkerFn func(logger *logrus.Logger, statsd *statsd.Client, db *pgxpool.Pool, redis *redis.Client, queue rmq.Connection, consumers int) Worker
type Worker interface {
Start() error
Stop()
}