Module z_mqtt_ticket

Tickets for MQTT out of band publish via HTTP.

Copyright © 2020 Marc Worrell

Behaviours: gen_server.

Authors: Marc Worrell (marc@worrell.nl).

Description

Tickets for MQTT out of band publish via HTTP

Function Index

code_change/3
delete_ticket/2Delete a stored context record.
exchange_ticket/2Exchange a ticket for a stored context record.
handle_call/3
handle_cast/2
handle_info/2
init/1
new_ticket/1Return a new ticket id for out of band MQTT calls.
start_link/1Starts the MQTT ticket server server.
terminate/2

Function Details

code_change/3

code_change(OldVersion, State, Extra) -> any()

delete_ticket/2

delete_ticket(Ticket::binary(), Context::z:context()) -> ok | {error, term()}

Delete a stored context record.

exchange_ticket/2

exchange_ticket(Ticket::binary(), Context::z:context()) -> {ok, z:context()} | {error, term()}

Exchange a ticket for a stored context record.

handle_call/3

handle_call(Msg, From, State) -> any()

handle_cast/2

handle_cast(Msg, State) -> any()

handle_info/2

handle_info(Msg, State) -> any()

init/1

init(X1) -> any()

new_ticket/1

new_ticket(Context::z:context()) -> {ok, binary()} | {error, term()}

Return a new ticket id for out of band MQTT calls.

start_link/1

start_link(Site) -> any()

Starts the MQTT ticket server server

terminate/2

terminate(Reason, State) -> any()


Generated by EDoc