mirror of
https://github.com/hibiken/asynq.git
synced 2025-09-19 05:17:30 +08:00
Add Get* methods to Payload type
This commit is contained in:
5
asynq.go
5
asynq.go
@@ -24,9 +24,8 @@ type Task struct {
|
||||
// Type indicates the kind of the task to be performed.
|
||||
Type string
|
||||
|
||||
// Payload is an arbitrary data needed for task execution.
|
||||
// The value has to be serializable.
|
||||
Payload map[string]interface{}
|
||||
// Payload holds data needed for the task execution.
|
||||
Payload Payload
|
||||
}
|
||||
|
||||
// RedisConfig specifies redis configurations.
|
||||
|
Reference in New Issue
Block a user