View Source routing_tree (routing_tree v1.0.7)
Summary
Types
-type host_tree() :: #host_tree{}.
-type options() :: #{convert_to_binary := boolean(), use_strict := boolean()}.
-type routing_tree() :: #routing_tree{}.
Functions
-spec insert(Host :: any(),
Path :: string() | binary() | integer(),
Comparator :: any(),
Value :: any(),
HT :: #host_tree{}) ->
#host_tree{}.
-spec lookup(Host :: binary() | '_',
Path :: list() | integer() | binary(),
Comparator :: any(),
#host_tree{}) ->
{ok, Bindings :: map(), Value :: any()} |
{ok, Bindings :: map(), Value :: any(), PathInfo :: [binary()]} |
{error, Reason :: term()}.
-spec new() -> #host_tree{}.
-spec new(Options :: options()) -> #host_tree{}.