added load balance support and verbose level

This commit is contained in:
yusing
2024-03-06 12:34:06 +08:00
parent a5c53a4f4f
commit 2f439233ed
25 changed files with 530 additions and 240 deletions

8
templates/panel.html Normal file → Executable file
View File

@@ -105,11 +105,12 @@
</tr>
</thead>
<tbody>
{{range $alias, $httpRoutes := .HTTPRoutes.Iterator}}
{{range $route := $httpRoutes}}
{{range $alias, $pathPoolMap := .HTTPRoutes.Iterator}}
{{range $path, $lbPool := $pathPoolMap.Iterator}}
{{range $_, $route := $lbPool.Iterator}}
<tr>
<td>{{$alias}}</td>
<td>{{$route.Path}}</td>
<td>{{$path}}</td>
<td>{{$route.Url.String}}</td>
<td class="align-middle">
<div class="health-circle"></div>
@@ -117,6 +118,7 @@
</tr>
{{end}}
{{end}}
{{end}}
</tbody>
</table>
</div>