src/treewalker_link_filter.erl
%%------------------------------------------------------------------------------
%% @doc Filter URL and return whether or not they must be followed.
%%
%% @copyright 2020 Antoine Gagné
%% @author Antoine Gagné <gagnantoine@gmail.com>
%% @end
%%------------------------------------------------------------------------------
-module(treewalker_link_filter).
%% API
-export([filter/1]).
-type url() :: treewalker_page:url().
%%%===================================================================
%%% Callbacks
%%%===================================================================
-callback filter(Url :: url()) -> IsAllowed :: boolean().
%%%===================================================================
%%% API
%%%===================================================================
-spec filter(url()) -> true.
filter(_Url) ->
true.
%%%===================================================================
%%% Internal functions
%%%===================================================================