Management API, service binary and host probes

TLS-only HTTP API with Argon2id auth, setup token, CSRF, TOTP, login throttling,
management source allow-list; network apply via helper; capture endpoints;
SSE events; crash recovery of interrupted segments; systemd notify/watchdog.
This commit is contained in:
Andy Dixon
2026-10-09 17:39:24 +01:00
parent 52da3c13f6
commit 31e39bdbef
16 changed files with 2150 additions and 31 deletions
+6 -6
View File
@@ -39,13 +39,13 @@ func scanRows(rows *sql.Rows) ([]Row, error) {
// Page is a window of packet rows. Position i in the (filtered) list is
// Offset+i; rows may be missing where summaries are still being generated.
type Page struct {
Total int64 `json:"total"`
First int64 `json:"first"` // packet number at position 0 (unfiltered views)
Offset int64 `json:"offset"`
Rows []Row `json:"rows"`
Total int64 `json:"total"`
First int64 `json:"first"` // packet number at position 0 (unfiltered views)
Offset int64 `json:"offset"`
Rows []Row `json:"rows"`
Nums []int64 `json:"nums,omitempty"` // packet numbers for each position (filtered views)
Filtered bool `json:"filtered"`
Partial bool `json:"partial"` // filter results cover only part of the capture
Filtered bool `json:"filtered"`
Partial bool `json:"partial"` // filter results cover only part of the capture
}
func (e *Engine) Packets(ctx context.Context, id, filter string, offset, limit int64) (Page, error) {