Add Get* methods to Payload type

This commit is contained in:
Ken Hibino
2019-12-19 07:13:43 -08:00
parent 3fd096a90a
commit 14ac5f6674
6 changed files with 418 additions and 7 deletions

View File

@@ -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.