refactor: move exporterInterface to own file

This commit is contained in:
Patryk Hegenberg 2025-09-25 07:37:46 +02:00
parent 72b6ad88c7
commit 4d3782902a
2 changed files with 11 additions and 5 deletions

11
exporter_interface.go Normal file
View file

@ -0,0 +1,11 @@
package main
import (
"context"
"tixel_watch/models"
)
type ExporterInterface interface {
Export(ctx context.Context, entries []models.LogMessage) error
HealthCheck(ctx context.Context) error
}

View file

@ -25,8 +25,3 @@ type StorageQuery struct {
OrderBy string
OrderDesc bool
}
type ExporterInterface interface {
Export(ctx context.Context, entries []models.LogMessage) error
HealthCheck(ctx context.Context) error
}