chore: regenerate sqlc and document saved-route evidence

This commit is contained in:
MrAlders0n authored and MrAlders0n committed 2026-09-30 07:48:21 -04:00
1 parent 89a376c291
commit c9b7010082
3 files changed
+5 -6

No files matched your search

+5 -1
View File
@@ -570,4 +570,8 @@ The initial analytics archive migration includes unknown-type activity. Existing
development previews that used the earlier draft require a separate operator repair;
radio samples already discarded for those legacy rows cannot be recovered.
Saved-route evidence: see [the operator guide](https://github.com/MeshCore-Beacon/beacon-docs/blob/main/app_documentation/saved-route-evidence.md).
### Saved-route evidence
`GET /api/v1/routes/{iata}/{pathKey}/observations` returns retained observations that match a saved
route's full path bytes, hash size and hop count within its IATA. `range` defaults to `24h` (max `720h`),
`limit` to 50 (max 200); page with `nextPageCursor` → `pageCursor`. Evidence expires with raw packets.
-2
View File
@@ -89,8 +89,6 @@ type Querier interface {
GetRegionIATAs(ctx context.Context, regionID int32) ([]string, error)
GetRouteEvidenceRoute(ctx context.Context, arg GetRouteEvidenceRouteParams) (KnownRoute, error)
GetScopeByName(ctx context.Context, name string) (GetScopeByNameRow, error)
// Copyright 2026 Beacon Contributors
// SPDX-License-Identifier: AGPL-3.0-or-later
GetScopeCatalogue(ctx context.Context, arg GetScopeCatalogueParams) (MeshmapperScopeCatalogue, error)
GetScopeNames(ctx context.Context) ([]string, error)
// Aggregate matching observations once, separately from node memberships to avoid
-3
View File
@@ -1510,7 +1510,6 @@ func (q *Queries) GetScopeByName(ctx context.Context, name string) (GetScopeByNa
}
const getScopeCatalogue = `-- name: GetScopeCatalogue :one
SELECT iata, url, payload, etag, checked_at, attempted_at, next_attempt, last_error FROM meshmapper_scope_catalogues WHERE iata = $1 AND url = $2
`
@@ -1519,8 +1518,6 @@ type GetScopeCatalogueParams struct {
Url string `json:"url"`
}
// Copyright 2026 Beacon Contributors
// SPDX-License-Identifier: AGPL-3.0-or-later
func (q *Queries) GetScopeCatalogue(ctx context.Context, arg GetScopeCatalogueParams) (MeshmapperScopeCatalogue, error) {
row := q.db.QueryRow(ctx, getScopeCatalogue, arg.Iata, arg.Url)
var i MeshmapperScopeCatalogue