12 lines
214 B
Go
12 lines
214 B
Go
|
|
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)
|
||
|
|
}
|