Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct {
Timestamp time.Time `json:"ts"`
Node string `json:"node"`
Tool string `json:"tool"`
Command string `json:"command"`
Shell string `json:"shell,omitempty"`
ExitCode int `json:"exit_code"`
DurationMs int64 `json:"duration_ms"`
OutputBytes int `json:"output_bytes"`
Truncated bool `json:"truncated"`
}
Entry represents a single audit log entry.
type Log ¶
type Log struct {
// contains filtered or unexported fields
}
Log is an append-only audit logger.
The in-process mutex serialises writers within one LabLinkServer process; the OS-level lock on a sidecar file serialises across processes so that rotation (rename of history.jsonl -> history.1.jsonl) and concurrent appends from a sibling LabLinkServer cannot interleave or lose lines.
Click to show internal directories.
Click to hide internal directories.