Search documentation of macula

# macula_relay (macula v0.44.2)

View Source

Macula Relay Server — hub-spoke message routing via pg + gproc.

Accepts QUIC connections from nodes. Each connection gets a handler process. Pub/sub uses OTP pg groups. RPC uses gproc registry. Process death = automatic cleanup (no TTLs, no manual eviction).

Uses async accept pattern (like macula_gateway_quic_server) — quicer:async_accept delivers {quic, new_conn, Conn, Info} messages.

Start: `macula_relay:start_link(#{port => 4433}).`

# Summary

## Functions

handle_call(Request, From, State)
handle_cast(Msg, State)
handle_info(Info, State)
init(Opts)
start_link(Opts)

Start the default (singleton) relay listener.

start_link(Name, Opts)

Start a named relay listener (for per-identity binding). Name is typically the identity hostname as an atom.

terminate(Reason, State)

# Functions

# handle_call(Request, From, State)

# handle_cast(Msg, State)

# handle_info(Info, State)

# init(Opts)

# start_link(Opts)

Start the default (singleton) relay listener.

# start_link(Name, Opts)

Start a named relay listener (for per-identity binding). Name is typically the identity hostname as an atom.

# terminate(Reason, State)