Go to file
Marcus Noble 2171865c10
Add support for setting room on webhook
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
2021-12-19 20:56:31 +00:00
.dockerignore Initial release 2021-07-07 11:05:36 +01:00
.gitignore Initial release 2021-07-07 11:05:36 +01:00
alertmanager.go Add support for setting room on webhook 2021-12-19 20:56:31 +00:00
Dockerfile Initial release 2021-07-07 11:05:36 +01:00
go.mod Added alertmanager payload parsing 2021-12-05 12:12:02 +00:00
go.sum Render formatting 2021-12-05 17:59:18 +00:00
LICENSE Initial release 2021-07-07 11:05:36 +01:00
main.go Correctly get room ID 2021-12-05 15:30:58 +00:00
Makefile Initial release 2021-07-07 11:05:36 +01:00
payload.go Correctly get room ID 2021-12-05 15:30:58 +00:00
README.md Added alertmanager payload parsing 2021-12-05 12:12:02 +00:00

Tank

A webhook handler to send messages to a Matrix homeserver.

Example

curl -X "POST" "http://localhost:3000/" \
     -H 'Content-Type: application/json; charset=utf-8' \
     -d $'{
  "message": "Test webhook",
  "type": "text",
  "roomID": "example"
}'

Features

  • Send text messages to a room
  • Send notice messages to a room
  • Integrations:
    • Alertmanager - Use the /alertmanager endpoint

Building from source

With Docker:

make docker-build

Standalone:

make build

Contributing

If you find a bug or have an idea for a new feature please raise an issue to discuss it.

Pull requests are welcomed but please try and follow similar code style as the rest of the project and ensure all tests and code checkers are passing.

Thank you 💛

License

See LICENSE