apollo-backend/internal/worker/worker.go

18 lines
383 B
Go
Raw Normal View History

package worker
import (
"context"
"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(context.Context, *logrus.Logger, *statsd.Client, *pgxpool.Pool, *redis.Client, rmq.Connection, int) Worker
type Worker interface {
2021-07-14 00:09:44 +00:00
Start() error
Stop()
}