em_filter
- Library for registering Emergence filters.
Version: 0.1.1
Authors: Steve Roques.
em_filter
- Library for registering Emergence filters
filter_url() = string()
port_number() = 1..65535
find_port/0 | Finds an available TCP port for the filter service. |
register_filter/1 | Registers a filter with the discovery service. |
find_port() -> {ok, port_number()} | {error, no_ports_available}
returns: {ok, Port} if an available port is found, or {error, no_ports_available} if no port is available
Finds an available TCP port for the filter service. Searches for a free port in the range 8081-9000.
register_filter(FilterUrl::filter_url()) -> {ok, registered} | {error, term()}
FilterUrl
: URL of the filter service to register
returns: {ok, registered} if registration is successful, or {error, Reason} if registration fails
Registers a filter with the discovery service.
This function sends an HTTP POST request to the discovery service at http://localhost:8080/register with the filter information in JSON format.Generated by EDoc