File: connection.ejs

package info (click to toggle)
rabbitmq-server 3.3.5-1.1
  • links: PTS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 12,004 kB
  • sloc: erlang: 78,203; python: 3,187; xml: 2,843; makefile: 903; sh: 831; java: 660; perl: 64; ruby: 63
file content (148 lines) | stat: -rw-r--r-- 3,097 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<h1>Connection <b><%= fmt_string(connection.name) %></b></h1>

<div class="section">
<h2>Overview</h2>
<div class="hider">
  <%= data_rates('data-rates-conn', connection, 'Data rates') %>

<div class="updatable">
<h3>Details</h3>
<table class="facts">
<% if (nodes_interesting) { %>
<tr>
  <th>Node</th>
  <td><%= fmt_node(connection.node) %></td>
</tr>
<% } %>
<% if (vhosts_interesting) { %>
<tr>
 <th>Virtual host</th>
 <td><%= fmt_string(connection.vhost) %></td>
</tr>
<% } %>
<tr>
 <th>Username</th>
 <td><%= fmt_string(connection.user) %></td>
</tr>
<tr>
 <th>Protocol</th>
 <td><%= connection.protocol %></td>
</tr>

<% if (connection.ssl) { %>
<tr>
 <th>SSL</th>
 <td><%= fmt_boolean(connection.ssl) %></td>
</tr>
<% } %>

<% if (connection.auth_mechanism) { %>
<tr>
 <th>Authentication</th>
 <td><%= connection.auth_mechanism %></td>
</tr>
<% } %>
</table>

<% if (connection.state) { %>
<table class="facts">
<tr>
 <th>State</th>
 <td><%= fmt_object_state(connection) %></td>
</tr>
<tr>
 <th>Timeout</th>
 <td><%= fmt_time(connection.timeout, 's') %></td>
</tr>
<tr>
 <th>Frame max</th>
 <td><%= connection.frame_max %> bytes</td>
</tr>
<tr>
 <th>Channel limit</th>
 <td><%= connection.channel_max %> channels</td>
</tr>
</table>
<% } %>
</div>

</div>
</div>

<div class="section">
  <h2>Channels</h2>
  <div class="hider updatable">
    <%= format('channels-list', {'channels': channels, 'mode': 'connection'}) %>
  </div>
</div>

<% if (connection.ssl) { %>
<div class="section">
<h2>SSL</h2>
<div class="hider">

<table class="facts">
  <tr>
    <th>Protocol Version</th>
    <td><%= connection.ssl_protocol %></td>
  </tr>
  <tr>
    <th>Key Exchange Algorithm</th>
    <td><%= connection.ssl_key_exchange %></td>
  </tr>
  <tr>
    <th>Cipher Algorithm</th>
    <td><%= connection.ssl_cipher %></td>
  </tr>
  <tr>
    <th>Hash Algorithm</th>
    <td><%= connection.ssl_hash %></td>
  </tr>
</table>

<% if (connection.peer_cert_issuer != '') { %>
<table class="facts">
  <tr>
    <th>Peer Certificate Issuer</th>
    <td><%= connection.peer_cert_issuer %></td>
  </tr>
  <tr>
    <th>Peer Certificate Subject</th>
    <td><%= connection.peer_cert_subject %></td>
  </tr>
  <tr>
    <th>Peer Certificate Validity</th>
    <td><%= connection.peer_cert_validity %></td>
  </tr>
</table>
<% } %>
</div>
</div>
<% } %>

<% if (properties_size(connection.client_properties) > 0) { %>
<div class="section-hidden">
<h2>Client properties</h2>
<div class="hider">
<%= fmt_table_long(connection.client_properties) %>
</div>
</div>
<% } %>

<div class="section-hidden">
  <h2>Close this connection</h2>
  <div class="hider">
    <form action="#/connections" method="delete" class="confirm">
      <input type="hidden" name="name" value="<%= fmt_string(connection.name) %>"/>
      <table class="form">
        <tr>
          <th><label>Reason:</label></th>
          <td>
            <input type="text" name="reason" value="Closed via management plugin" class="wide"/>
          </td>
        </tr>
      </table>
      <input type="submit" value="Force Close"/>
    </form>
  </div>
</div>