Files
core/restream/app/log.go
2023-04-25 15:55:32 +02:00

40 lines
525 B
Go

package app
import (
"time"
)
type LogLine struct {
Timestamp time.Time
Data string
}
type LogEntry struct {
CreatedAt time.Time
Prelude []string
Log []LogLine
Matches []string
}
type LogHistoryEntry struct {
LogEntry
ExitedAt time.Time
ExitState string
Progress Progress
Usage ProcessUsage
}
type Log struct {
LogEntry
History []LogHistoryEntry
}
type LogHistorySearchResult struct {
ProcessID string
Reference string
ExitState string
ExitedAt time.Time
CreatedAt time.Time
}