The only supported way to read a manifest.
Read a manifest through these functions, not through the Spark internals, so that the DSL stays replaceable.
Summary
Functions
Returns the events that a topic declares, in the order of declaration.
Returns the fields that an event declares, in the order of declaration.
Finds the declared topic that a wire topic belongs to, and the params that it carries.
Returns the params of a topic, in the order of its segments.
Fetches a topic by its name.
Fetches a topic by its name, and raises with the known topics when it is absent.
topics DSL entities
Functions
Returns the events that a topic declares, in the order of declaration.
@spec fields(module(), atom(), atom()) :: [VerifiedPubSub.Dsl.Field.t()]
Returns the fields that an event declares, in the order of declaration.
Finds the declared topic that a wire topic belongs to, and the params that it carries.
iex> VerifiedPubSub.Info.match(MyApp.Topics, "owners:42:pets")
{:ok, :pets, %{owner_id: "42"}}It does the reverse of VerifiedPubSub.Api.topic/2, for a string from a log, a trace,
or Phoenix.PubSub. Param values come back as the strings that were on the wire.
Returns :error when no topic matches, and when a param segment is empty, which no
broadcast can produce.
Returns the params of a topic, in the order of its segments.
@spec topic(module(), atom()) :: {:ok, VerifiedPubSub.Dsl.Topic.t()} | :error
Fetches a topic by its name.
@spec topic!(module(), atom()) :: VerifiedPubSub.Dsl.Topic.t()
Fetches a topic by its name, and raises with the known topics when it is absent.
topics DSL entities