aprs.me/lib/aprsme/packets_behaviour.ex
Graham McIntire b0832e5a9c
Some checks failed
Build and Push / Build and Push Docker Image (push) Failing after 2s
refactor: harden packet delivery and operations
2026-07-26 13:11:26 -05:00

10 lines
412 B
Elixir

defmodule Aprsme.PacketsBehaviour do
@moduledoc """
Behaviour for Packets module to allow mocking in tests
"""
@callback get_historical_packet_count(map()) :: non_neg_integer()
@callback get_recent_packets(map()) :: list()
@callback get_nearby_stations(float(), float(), String.t() | nil, map()) :: list()
@callback get_weather_packets(String.t(), DateTime.t(), DateTime.t(), map()) :: list()
end