rebar3_nova_routes (rebar3_nova v0.13.3)

View Source

Summary

Types

host_tree/0

-type host_tree() ::
          #host_tree{hosts ::
                         [{Host :: binary() | '_',
                           Tree ::
                               #routing_tree{tree ::
                                                 [#node{segment :: term(),
                                                        value ::
                                                            [#node_comp{comparator :: '_' | binary(),
                                                                        value :: any()}],
                                                        children :: [#node{}],
                                                        is_binding :: boolean(),
                                                        is_wildcard :: boolean()}]}}],
                     options :: term()}.

options/0

-type options() :: #{convert_to_binary := boolean(), use_strict := boolean()}.

routing_tree/0

-type routing_tree() ::
          #routing_tree{tree ::
                            [#node{segment :: term(),
                                   value :: [#node_comp{comparator :: '_' | binary(), value :: any()}],
                                   children :: [#node{}],
                                   is_binding :: boolean(),
                                   is_wildcard :: boolean()}]}.

Functions

do(State)

-spec do(rebar_state:t()) -> {ok, rebar_state:t()} | {error, string()}.

format_error(Reason)

-spec format_error(any()) -> iolist().

init(State)

-spec init(rebar_state:t()) -> {ok, rebar_state:t()}.