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:
25
broker/broker.go
Normal file
25
broker/broker.go
Normal 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
|
||||
)
|
Reference in New Issue
Block a user