mirror of
https://github.com/MeshCore-Beacon/beacon-server.git
synced 2026-09-11 14:35:41 +00:00
fix: messy *Store ListChannels comment
This commit is contained in:
+2
-7
@@ -375,16 +375,11 @@ func (s *Store) UpsertRegionIATA(ctx context.Context, regionID int32, iata strin
|
||||
})
|
||||
}
|
||||
|
||||
// ListChannels returns a summary list of all known channels ordered by last seen.
|
||||
// Includes both hashtag-derived and explicit key channels.
|
||||
// Channels with unknown keys are included with KeyKnown=false.
|
||||
// Filters on hash if provided, this is the hex channel hash
|
||||
// ListChannels returns a summary list of all known channels ordered by last seen.
|
||||
// ListChannels returns a paginated list of channels ordered by last seen.
|
||||
// Pass nil hash to skip hash filtering. Pass empty string iata to return channels from all IATAs.
|
||||
// IATA filtering returns channels that have messages heard in the given IATA.
|
||||
// ListChannels returns a paginated list of channels ordered by last seen.
|
||||
// Channels with unknown keys are included with KeyKnown=false.
|
||||
// cursor is last_seen epoch ms of the last item; pass 0 to start from the beginning.
|
||||
// Note: after sqlc generate, verify Column param names match generated types.
|
||||
func (s *Store) ListChannels(ctx context.Context, limit int32, hash []byte, iata string, cursor int64) (api.Page[api.ChannelSummary], error) {
|
||||
var cursorTS pgtype.Timestamptz
|
||||
if cursor > 0 {
|
||||
|
||||
Reference in New Issue
Block a user