No description
- Go 97.7%
- Dockerfile 2.3%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
|
||
| .env.example | ||
| .gitignore | ||
| .woodpecker.yml | ||
| config.go | ||
| Dockerfile | ||
| go.mod | ||
| go.sum | ||
| handler.go | ||
| LICENSE | ||
| mailchecker.go | ||
| main.go | ||
| README.md | ||
| service.go | ||
mail-healthchecker
Simple mail http server healthchecking standalone application written in Golang. It uses IMAP to check if mail is received and STMP to send mails.
It only exposes one endpoint /healthz
How it works?
- First application enters
initializingstate, it will return202 Acceptedin HTTP response. - Then it checks IMAP connection, sends test mail, searches it using custom header, and purges it.
- If previous step will not fail at any point HTTP response will return
200 OK. - If there are no IMAP connection/cannot send test mail/cannot find received mail it will enter into
failedmode, and returns503