Provide task queue registration and service container injection.
This commit is contained in:
parent
0d2ad6e936
commit
912ae2ca6b
5 changed files with 96 additions and 78 deletions
10
pkg/tasks/register.go
Normal file
10
pkg/tasks/register.go
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
package tasks
|
||||
|
||||
import (
|
||||
"github.com/mikestefanello/pagoda/pkg/services"
|
||||
)
|
||||
|
||||
// Register registers all task queues with the task client
|
||||
func Register(c *services.Container) {
|
||||
c.Tasks.Register(NewExampleTaskQueue(c))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue