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

Link to this function

insert(Host, Path, Comparator, Value, Host_tree)

View Source
-spec insert(Host :: any(),
       Path :: string() | binary() | integer(),
       Comparator :: any(),
       Value :: any(),
       HT :: #host_tree{}) ->
          #host_tree{}.
Link to this function

lookup(Host, Path, Comparator, Host_tree)

View Source
-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{}.