tasks pkg
This commit is contained in:
parent
3e74f1cf5e
commit
88db05604a
2 changed files with 143 additions and 0 deletions
11
internal/tasks/interface.go
Normal file
11
internal/tasks/interface.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
package tasks
|
||||
|
||||
import (
|
||||
"context"
|
||||
"parser-mandarake/internal/common"
|
||||
)
|
||||
|
||||
type Tasker interface {
|
||||
GetTasks(ctx context.Context) <-chan common.Task
|
||||
SendResult(ctx context.Context, resultChan chan common.Result)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue