Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/teal-finance/notifier
some software bots to send notifications and alerts
https://github.com/teal-finance/notifier
golang mattermost notifier
Last synced: about 2 months ago
JSON representation
some software bots to send notifications and alerts
- Host: GitHub
- URL: https://github.com/teal-finance/notifier
- Owner: teal-finance
- License: mit
- Created: 2022-03-26T00:19:57.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-24T09:38:56.000Z (almost 2 years ago)
- Last Synced: 2024-06-21T17:07:25.393Z (7 months ago)
- Topics: golang, mattermost, notifier
- Language: Go
- Homepage:
- Size: 19.5 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# notifier
![workflow](https://github.com/teal-finance/notifier/actions/workflows/go.yml/badge.svg)
[![Go Report](https://goreportcard.com/badge/github.com/teal-finance/notifier)](https://goreportcard.com/report/github.com/teal-finance/notifier)
[![Go Version](https://img.shields.io/github/go-mod/go-version/teal-finance/notifier.svg)](https://github.com/teal-finance/notifier)
[![Go Reference](https://pkg.go.dev/badge/github.com/teal-finance/notifier.svg)](https://pkg.go.dev/github.com/teal-finance/notifier)A golang package to send notification on some apps.
## Usage
### Mattermost
To set up a webhook, check the [mattermost documentation](https://docs.mattermost.com/developer/webhooks-incoming.html)
```go
url := "https://framateam.org/hooks/your-mattermost-hook-url"
n := mattermost.NewNotifier(url)
n.Notify("Hello, world!")
```