Vibe.Gateway.Runtime (vibe v0.2.1)

Copy Markdown View Source

Generic runtime for external chat gateways.

The runtime receives platform updates from an inbound transport, asks the configured backend to normalize and authorize them, then dispatches accepted messages into Vibe sessions using deterministic gateway session keys.

Summary

Functions

Returns a specification to start this module under a supervisor.

Types

dispatch_fun()

@type dispatch_fun() :: (Vibe.Gateway.Message.t(), keyword() ->
                     {:ok, String.t()} | {:error, term()})

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts)

@spec start_link(keyword()) :: GenServer.on_start()

stats(server)

@spec stats(GenServer.server()) :: map()

submit(server, update)

@spec submit(GenServer.server(), term()) :: :ok