Documentation
¶
Overview ¶
Package eventlog records alarms, user actions and system events into a SQLite table and answers time-range queries, backing FameView's 事件记录 (event/audit log) screen with a persisted, filterable history.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
Event is one recorded log entry: when it happened, its kind, the component that emitted it, and a human-readable message.
type Log ¶
type Log struct {
// contains filtered or unexported fields
}
Log owns a SQLite handle holding a single events table.
func NewLog ¶
NewLog opens (creating if needed) the SQLite database at dbPath and makes sure the events table and its ts and kind indexes exist.
Click to show internal directories.
Click to hide internal directories.