First version of switchyard that kind of works

This commit is contained in:
Barak Michener 2013-09-08 01:47:36 -04:00
commit 4f623d4897
4 changed files with 293 additions and 0 deletions

22
templates/index.html Normal file
View file

@ -0,0 +1,22 @@
<html>
<head>
<title>Switchyard Server</title>
</head>
<body>
<h1>Switchyard</h1>
<h2>Current Routes:</h2>
<table>
<thead>
<td>Hostname</td>
<td>Target</td>
</thead>
{{ range .Forwards }}
<tr>
<td> {{ .Hostname }} </td>
<td> {{ .Target }} </td>
</tr>
{{end}}
</table>
</body>
</html>