refactor: move models to their own package to use the same as in the importer
This commit is contained in:
parent
553a85562b
commit
9aa1b7384d
14 changed files with 170 additions and 152 deletions
3
main.go
3
main.go
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue