| 1 |
package sink |
| 2 |
|
| 3 |
import ( |
| 4 |
"context" |
| 5 |
|
| 6 |
"github.com/humanlogio/humanlog/internal/pkg/model" |
| 7 |
) |
| 8 |
|
| 9 |
type Sink interface { |
| 10 |
Receive(ctx context.Context, ev *model.Event) error |
| 11 |
} |
| 12 |
|
| 13 |
type BatchSink interface { |
| 14 |
ReceiveBatch(ctx context.Context, evs []model.Event) error |
| 15 |
} |