2
0
mirror of https://github.com/hibiken/asynq.git synced 2025-10-22 09:56:12 +08:00

feat: exports broker releated types

This commit is contained in:
huangdong.106
2024-12-03 21:53:19 +08:00
parent 7986156ac4
commit 6dad2eb6d7
3 changed files with 29 additions and 2 deletions

25
broker/broker.go Normal file
View File

@@ -0,0 +1,25 @@
package broker
import (
"github.com/hibiken/asynq/internal/base"
"github.com/hibiken/asynq/internal/rdb"
)
// This package exports the same types as the internal package.
// This is a temporary solution until we can move the these types out of internal.
type (
TaskMessage = base.TaskMessage
WorkerInfo = base.WorkerInfo
ServerInfo = base.ServerInfo
Broker = base.Broker
CancellationSubscription = base.CancellationSubscription
RDB = rdb.RDB
)
var (
NewRDB = rdb.NewRDB
)