z_mqtt_ticket (zotonic_core v1.0.0-rc.14)

Tickets for MQTT out of band publish via HTTP

Link to this section Summary

Functions

Delete a stored context record.
Exchange a ticket for a stored context record.
Return a new ticket id for out of band MQTT calls.
Starts the MQTT ticket server server

Link to this section Functions

Link to this function

code_change(OldVersion, State, Extra)

Link to this function

delete_ticket(Ticket, Context)

-spec delete_ticket(binary(), z:context()) -> ok | {error, term()}.
Delete a stored context record.
Link to this function

exchange_ticket(Ticket, Context)

-spec exchange_ticket(binary(), z:context()) -> {ok, z:context()} | {error, term()}.
Exchange a ticket for a stored context record.
Link to this function

handle_call(Msg, From, State)

Link to this function

handle_cast(Msg, State)

Link to this function

handle_info(Msg, State)

Link to this function

new_ticket(Context)

-spec new_ticket(z:context()) -> {ok, binary()} | {error, term()}.
Return a new ticket id for out of band MQTT calls.
Link to this function

start_link(Site)

Starts the MQTT ticket server server
Link to this function

terminate(Reason, State)