refactor: use parser package for systemd logs
This commit is contained in:
parent
9aa1b7384d
commit
e468b3a0e3
13 changed files with 897 additions and 275 deletions
11
parser/parser.go
Normal file
11
parser/parser.go
Normal 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue