finish logs page

This commit is contained in:
Kujtim Hoxha 2025-04-09 19:07:39 +02:00
commit d39d52d95d
22 changed files with 564 additions and 250 deletions

View file

@ -4,13 +4,15 @@ import (
"time"
)
// Message is the event payload for a log message
type Message struct {
ID string
Time time.Time
Level string
Message string `json:"msg"`
Attributes []Attr
// LogMessage is the event payload for a log message
type LogMessage struct {
ID string
Time time.Time
Level string
Persist bool // used when we want to show the mesage in the status bar
PersistTime time.Duration // used when we want to show the mesage in the status bar
Message string `json:"msg"`
Attributes []Attr
}
type Attr struct {