-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
950 additions
and
752 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package queue | ||
|
||
import "time" | ||
|
||
type Driver interface { | ||
// Connection returns the connection name for the driver. | ||
Connection() string | ||
// Driver returns the driver name for the driver. | ||
Driver() string | ||
// Push pushes the job onto the queue. | ||
Push(job Job, args []any, queue string) error | ||
// Bulk pushes a slice of jobs onto the queue. | ||
Bulk(jobs []Jobs, queue string) error | ||
// Later pushes the job onto the queue after a delay. | ||
Later(delay time.Duration, job Job, args []any, queue string) error | ||
// Pop pops the next job off of the queue. | ||
Pop(queue string) (Job, []any, error) | ||
} |
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
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
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
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
Oops, something went wrong.