Astarte.Core.Mapping.EndpointsAutomaton (astarte_core v1.0.0-beta.2) View Source

Link to this section Summary

Functions

builds the automaton for given mappings, returns :ok followed by the automaton tuple if build succeeded, otherwise :error and the reason.

returns true if nfa is valid for given mappings

returns a list of likely invalid endpoints for a certain list of mappings.

returns :ok and an endpoint for a given path using a previously built automata ({transitions, accepting_states}). if path is not complete one or more endpoints will be guessed and :guessed followed by a list of endpoints is returned.

Link to this section Functions

builds the automaton for given mappings, returns :ok followed by the automaton tuple if build succeeded, otherwise :error and the reason.

Link to this function

is_valid?(nfa, mappings)

View Source

returns true if nfa is valid for given mappings

returns a list of likely invalid endpoints for a certain list of mappings.

Link to this function

parse_endpoint(mapping, arg)

View Source

returns :ok and an endpoint for a given path using a previously built automata ({transitions, accepting_states}). if path is not complete one or more endpoints will be guessed and :guessed followed by a list of endpoints is returned.