coda/internal/worker/notifier.go

18 lines
256 B
Go

package worker
import (
"context"
"coda/internal/models"
)
type Notifier interface {
Notify(ctx context.Context, job *models.Job) error
}
type NoopNotifier struct{}
func (NoopNotifier) Notify(_ context.Context, _ *models.Job) error {
return nil
}