62c53a6b4d
* Initial rough draft switch to sqlite. * Rewrote cache implemenation. * Provide typed tasks. * Task cleanup. * Use same db for tasks. * Provide task queue registration and service container injection. * Added optional delay to tasks. Pool buffers when encoding. * Added tests for the task client and runner. * Added handler examples for caching and tasks. * Cleanup and documentation. * Use make in workflow. * Updated documentation. * Updated documentation.
11 lines
218 B
Go
11 lines
218 B
Go
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))
|
|
}
|