Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Info ¶
Info publishes an informational notification with a TTL after which it can be automatically dismissed.
Types ¶
type Notification ¶
type Notification struct {
ID string `json:"id"`
Time time.Time `json:"time"`
Level Level `json:"level"`
Source Source `json:"source"`
Message string `json:"message"`
TTL time.Duration `json:"ttl,omitempty"` // 0 = permanent until dismissed
}
Notification is a user-facing event (not a debug log) that should be surfaced in the TUI, the Web UI via SSE, and the ACP protocol.
Click to show internal directories.
Click to hide internal directories.