diff options
Diffstat (limited to 'deps/rabbitmq_peer_discovery_common/include/rabbit_peer_discovery.hrl')
-rw-r--r-- | deps/rabbitmq_peer_discovery_common/include/rabbit_peer_discovery.hrl | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/deps/rabbitmq_peer_discovery_common/include/rabbit_peer_discovery.hrl b/deps/rabbitmq_peer_discovery_common/include/rabbit_peer_discovery.hrl new file mode 100644 index 0000000000..14aa6ad3b8 --- /dev/null +++ b/deps/rabbitmq_peer_discovery_common/include/rabbit_peer_discovery.hrl @@ -0,0 +1,26 @@ +%% This Source Code Form is subject to the terms of the Mozilla Public +%% License, v. 2.0. If a copy of the MPL was not distributed with this +%% file, You can obtain one at https://mozilla.org/MPL/2.0/. +%% +%% Copyright (c) 2007-2020 VMware, Inc. or its affiliates. All rights reserved. +%% + +% rabbitmq/rabbitmq-peer-discovery-aws#25 +% Note: this timeout must not be greater than the default +% gen_server:call timeout of 5000ms. This `timeout`, +% when set, is used as the connect and then request timeout +% by `httpc` +-define(DEFAULT_HTTP_TIMEOUT, 2250). + +-type peer_discovery_config_value() :: atom() | integer() | string() | undefined. + +-record(peer_discovery_config_entry_meta, + {env_variable :: string(), + default_value :: peer_discovery_config_value(), + type :: atom()}). + +-type(peer_discovery_config_entry_meta() :: #peer_discovery_config_entry_meta{ + type :: atom(), + env_variable :: string(), + default_value :: peer_discovery_config_value() + }). |