refactor: move exporterInterface to own file
This commit is contained in:
parent
72b6ad88c7
commit
4d3782902a
2 changed files with 11 additions and 5 deletions
11
exporter_interface.go
Normal file
11
exporter_interface.go
Normal 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
|
||||
}
|
||||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue