mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Add context do models.MessageQueue interface
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
package mqs
|
||||
|
||||
import "github.com/iron-io/functions/api/models"
|
||||
import (
|
||||
"github.com/iron-io/functions/api/models"
|
||||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
type Mock struct {
|
||||
FakeApp *models.App
|
||||
@@ -9,14 +12,14 @@ type Mock struct {
|
||||
FakeRoutes []*models.Route
|
||||
}
|
||||
|
||||
func (mock *Mock) Push(*models.Task) (*models.Task, error) {
|
||||
func (mock *Mock) Push(context.Context, *models.Task) (*models.Task, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (mock *Mock) Reserve() (*models.Task, error) {
|
||||
func (mock *Mock) Reserve(context.Context) (*models.Task, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (mock *Mock) Delete(*models.Task) error {
|
||||
func (mock *Mock) Delete(context.Context, *models.Task) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user