update PacketsBehaviour to include all expected functions

This commit is contained in:
Fly Dev 2025-06-23 14:21:07 +00:00
parent 06a42bd806
commit ce876f88d0

View file

@ -5,4 +5,8 @@ defmodule Aprs.PacketsBehaviour do
@callback get_historical_packet_count(map()) :: non_neg_integer()
@callback stream_packets_for_replay(map()) :: Enumerable.t()
@callback get_packets_for_replay(map()) :: list()
@callback get_recent_packets(map()) :: list()
@callback clean_old_packets() :: {:ok, non_neg_integer()} | {:error, any()}
@callback clean_packets_older_than(pos_integer()) :: {:ok, non_neg_integer()} | {:error, any()}
end