11 lines
232 B
Go
11 lines
232 B
Go
package port
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
// TaskProducer enqueues async tasks for background processing.
|
|
type TaskProducer interface {
|
|
EnqueueTask(ctx context.Context, action string, payload map[string]any) (jobID string, err error)
|
|
}
|