refactor: move models to their own package to use the same as in the importer

This commit is contained in:
Patryk Hegenberg 2025-09-24 22:57:37 +02:00
parent 553a85562b
commit 9aa1b7384d
14 changed files with 170 additions and 152 deletions

View file

@ -8,6 +8,7 @@ import (
"sync"
"syscall"
"time"
"tixel_watch/models"
)
var hostname string
@ -76,7 +77,7 @@ func main() {
// exportManager.RegisterExporter("grafana", grafanaExporter)
}
logChan := make(chan LogEntry, 1000)
logChan := make(chan models.LogMessage, 1000)
ctx, cancel := context.WithCancel(context.Background())
defer cancel()