Last active
August 29, 2015 14:23
-
-
Save soheilhy/f25e78b79330d7067b6b to your computer and use it in GitHub Desktop.
Basic structures in taskq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Queue represents a named queue. | |
type Queue string | |
// Task represents a task in a queue. | |
type Task struct { | |
ID uint64 `json:"id"` // Task's globally unique ID assigned by taskq. | |
Queue Queue `json:"queue"` // Task's queue. | |
Body []byte `json:"body"` // Task's client data. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment