feat: persist logs to DB, load on startup

This commit is contained in:
2026-05-16 15:25:08 -04:00
parent 4d375cf874
commit ed082e4080
7 changed files with 59 additions and 0 deletions
+2
View File
@@ -50,6 +50,8 @@ func (m *mockStore) GetNode(string) (models.ProbeNode, error) { return m
func (m *mockStore) GetAllNodes() ([]models.ProbeNode, error) { return nil, nil }
func (m *mockStore) UpdateNodeLastSeen(string) error { return nil }
func (m *mockStore) DeleteNode(string) error { return nil }
func (m *mockStore) SaveLog(string) error { return nil }
func (m *mockStore) LoadLogs(int) ([]string, error) { return nil, nil }
func TestMetricsHandler(t *testing.T) {
ms := &mockStore{