Stargate.Message.new

You're seeing just the function new, go back to Stargate.Message module for more information.
Link to this function

new(message, persistence, tenant, namespace, topic)

View Source

Specs

new(map(), String.t(), String.t(), String.t(), String.t()) :: t()

Create a %Stargate.Message{} struct from a list of arguments. Takes the map decoded from the json message payload received from Pulsar and adds the tenant, namespace, topic, persistence information to maintain "location awareness" of a message's source topic.

Creating a %Stargate.Message{} via the new/5 function automatically converts the ISO8601-formatted publish timestamp to a DateTime struct and decodes the message payload from the Base64 encoding received from the cluster.