123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- {{ define "home" -}}
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>SQS Redriver</title>
- <link rel="stylesheet" href="/assets/styles.css"/>
- <link rel="stylesheet" href="/assets/bootstrap.min.css">
- </head>
- <body>
- <main class="container">
- <div class="container mt-5">
- <nav aria-label="breadcrumb">
- <ol class="breadcrumb">
- <li class="breadcrumb-item">Home</li>
- </ol>
- </nav>
- </div>
- <h1 class="text-3xl font-bold underline">SQS Queues
- {{ if .prefix }}
- matching prefix: {{ .prefix }}
- {{ end}}
- </h1>
- <table id="home-table" class="table">
- <caption>Grayed out queues in the left column are accepted by the given DLQ,
- but are not configured to use a DLQ. This is a configuration error in SQS.
- </caption>
- <thead>
- <th scope="col">Queue name</th>
- <th scope="col">DLQ name</th>
- </thead>
- <tbody>
- {{ range .rows }}
- {{ template "home-row" . }}
- {{ end }}
- <tr>
- <td>
- <ul>
- <li><a class="text-black-50 bg-light" href="/queue/acquisition-reviews-sender-submit-qa3">acquisition-reviews-sender-submit-qa3</a>
- </li>
- <li>
- <a href="/queue/acquisition-reviews-sender-submit-stg">acquisition-reviews-sender-submit-stg</a>
- </li>
- </ul>
- </td>
- <td><a href="/queue/acquisition-reviews-sender-submit-dlq">acquisition-reviews-sender-submit-dlq</a>
- </td>
- </tr>
- <tr>
- <td>
- <ul>
- <li><a href="/queue/payment-payin-work-dlq-qa3">payment-payin-work-dlq-qa3</a></li>
- <li><a class="text-black-50 bg-light" href="/queue/payment-payin-work-dlq-stg">payment-payin-work-dlq-std</a>
- </li>
- </ul>
- </td>
- <td><a href="/queue/payment-payin-work-dlq-dlq">payment-payin-work-dlq</a></td>
- </tr>
- </tbody>
- </table>
- </main>
- </body>
- </html>
- {{ end }}
- {{ define "home-row" }}
- <tr>
- <td>{{ template "home-cell" (index . 0) }}</td>
- <td>{{ template "home-cell" (index . 1) }}</td>
- </tr>
- {{ end }}
- {{ define "home-cell" }}
- {{ if .Message }}
- <em>{{ .Message }}</em>
- {{else if .Link }}
- <a href="{{ .Link.URL }}">{{ .Link.Text }}</a>
- {{ else }}
- <ul>
- {{ range .Links }}
- <li><a href="{{ .URL }}">{{ .Text }}</a></li>
- {{ end }}
- </ul>
- {{end}}
- {{ end }}
|