refactor: use parser package for systemd logs

This commit is contained in:
Patryk Hegenberg 2025-09-25 00:01:34 +02:00
parent 9aa1b7384d
commit e468b3a0e3
13 changed files with 897 additions and 275 deletions

11
parser/parser.go Normal file
View file

@ -0,0 +1,11 @@
package parser
import (
"tixel_watch/models"
)
type Parser interface {
//TODO: Change parsers to return an error as well
Parse(line string) (models.LogMessage, error)
// Parse(line string) models.LogMessage
}