github.com/machinefi/w3bstream@v1.6.5-rc9.0.20240426031326-b8c7c4876e72/pkg/depends/kit/mq/task_manager.go (about) 1 package mq 2 3 import "github.com/pkg/errors" 4 5 type TaskManager interface { 6 Push(ch string, t Task) error 7 Pop(ch string) (Task, error) 8 Remove(ch string, id string) error 9 Clear(ch string) error 10 } 11 12 var ( 13 ErrPushTaskTimeout = errors.New("push task to queue timeout") 14 )