diff options
author | Vincent Ambo <tazjin@google.com> | 2019-12-21T01·21+0000 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2019-12-21T01·21+0000 |
commit | 1a281d3bb93fa46e74fb5e5b79a5da38ba48d628 (patch) | |
tree | 60127697dcd12debaedd876e53bfba511bc69949 /net/stomp_erl/include/stomp.hrl | |
parent | 5f4924cfa769fc2be2ddbd8fe6f82cb0b3663409 (diff) | |
parent | 32d16e2b02bd9ef112107ae5408a1f8fb7fc92c1 (diff) |
merge(stomp.erl): Integrate at //net/stomp_erl r/268
This currently has no build configuration.
Diffstat (limited to 'net/stomp_erl/include/stomp.hrl')
-rw-r--r-- | net/stomp_erl/include/stomp.hrl | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/net/stomp_erl/include/stomp.hrl b/net/stomp_erl/include/stomp.hrl new file mode 100644 index 000000000000..30c933b56302 --- /dev/null +++ b/net/stomp_erl/include/stomp.hrl @@ -0,0 +1,22 @@ +%% Client ack modes, refer to the STOMP protocol documentation +-type ack_mode() :: client | client_individual | auto. + +%% Subscriptions are enumerated from 0 +-type sub_id() :: integer(). + +%% Message IDs (for acknowledgements) are simple strings. They are +%% extracted from the 'ack' field of the header in client or client-individual +%% mode, and from the 'message-id' field in auto mode. +-type message_id() :: binary(). + +%% A destination can be a queue, or something else. +%% Example: <<"/queue/lizards">> +-type destination() :: binary(). + +%% A STOMP message as received from a queue subscription +-record(stomp_msg, { headers :: #{ binary() => binary() }, + body :: binary() }). +-type stomp_msg() :: #stomp_msg{}. + +%% STOMP frame components +-type headers() :: #{binary() => binary()}. |