1%% This Source Code Form is subject to the terms of the Mozilla Public
2%% License, v. 2.0. If a copy of the MPL was not distributed with this
3%% file, You can obtain one at https://mozilla.org/MPL/2.0/.
4%%
5%% Copyright (c) 2020-2021 VMware, Inc. or its affiliates.  All rights reserved.
6%%
7
8-ifndef(AMQP_CLIENT_HRL).
9-define(AMQP_CLIENT_HRL, true).
10
11-include_lib("rabbit_common/include/rabbit.hrl").
12-include_lib("rabbit_common/include/rabbit_framing.hrl").
13
14-record(amqp_msg, {props = #'P_basic'{}, payload = <<>>}).
15
16-record(amqp_params_network, {username           = <<"guest">>,
17                              password           = <<"guest">>,
18                              virtual_host       = <<"/">>,
19                              host               = "localhost",
20                              port               = undefined,
21                              channel_max        = 2047,
22                              frame_max          = 0,
23                              heartbeat          = 10,
24                              connection_timeout = 60000,
25                              ssl_options        = none,
26                              auth_mechanisms    =
27                                  [fun amqp_auth_mechanisms:plain/3,
28                                   fun amqp_auth_mechanisms:amqplain/3],
29                              client_properties  = [],
30                              socket_options     = []}).
31
32-record(amqp_params_direct, {username          = none,
33                             password          = none,
34                             virtual_host      = <<"/">>,
35                             node              = node(),
36                             adapter_info      = none,
37                             client_properties = []}).
38
39-record(amqp_adapter_info, {host            = unknown,
40                            port            = unknown,
41                            peer_host       = unknown,
42                            peer_port       = unknown,
43                            name            = unknown,
44                            protocol        = unknown,
45                            additional_info = []}).
46
47-endif.
48