emqx_durable_session_metadata.hrl 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. %%--------------------------------------------------------------------
  2. %% Copyright (c) 2022, 2024 EMQ Technologies Co., Ltd. All Rights Reserved.
  3. %%
  4. %% Licensed under the Apache License, Version 2.0 (the "License");
  5. %% you may not use this file except in compliance with the License.
  6. %% You may obtain a copy of the License at
  7. %%
  8. %% http://www.apache.org/licenses/LICENSE-2.0
  9. %%
  10. %% Unless required by applicable law or agreed to in writing, software
  11. %% distributed under the License is distributed on an "AS IS" BASIS,
  12. %% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. %% See the License for the specific language governing permissions and
  14. %% limitations under the License.
  15. %%--------------------------------------------------------------------
  16. %% @doc This header contains definitions of durable session metadata
  17. %% keys, that can be consumed by the external code.
  18. -ifndef(EMQX_DURABLE_SESSION_META_HRL).
  19. -define(EMQX_DURABLE_SESSION_META_HRL, true).
  20. %% Session metadata keys:
  21. -define(created_at, created_at).
  22. -define(last_alive_at, last_alive_at).
  23. -define(node_epoch_id, node_epoch_id).
  24. -define(expiry_interval, expiry_interval).
  25. %% Unique integer used to create unique identities:
  26. -define(last_id, last_id).
  27. %% Connection info (relevent for the dashboard):
  28. -define(peername, peername).
  29. -define(will_message, will_message).
  30. -define(clientinfo, clientinfo).
  31. -define(protocol, protocol).
  32. -define(offline_info, offline_info).
  33. -endif.