- Notifications
You must be signed in to change notification settings - Fork70
Notification library for gophers and their furry friends.
License
NotificationsYou must be signed in to change notification settings
containrrr/shoutrrr
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
$ sudo snap install shoutrrr
$ go install github.com/containrrr/shoutrrr/shoutrrr@latest
$ go build -o shoutrrr ./shoutrrr
Using shoutrrr is easy! There is currently two ways of using it as a package.
url:="slack://token-a/token-b/token-c"err:=shoutrrr.Send(url,"Hello world (or slack channel) !")
url:="slack://token-a/token-b/token-c"sender,err:=shoutrrr.CreateSender(url)sender.Send("Hello world (or slack channel) !",map[string]string {/* ... */ })
urls:= []string {"slack://token-a/token-b/token-c""discord://token@channel" }sender,err:=shoutrrr.CreateSender(urls...)sender.Send("Hello world (or slack channel) !",map[string]string {/* ... */ })
Start by running thebuild.sh
script.You may then run send notifications using the shoutrrr executable:
$ shoutrrr send [OPTIONS]<URL><Message [...]>
You can also use Shoutrrr from a GitHub Actions workflow.
See this example and theaction on GitHubMarketplace:
name:Deployon:push:branches: -mainjobs:build:runs-on:ubuntu-lateststeps: -name:Some other steps needed for deployingrun:... -name:Shoutrrruses:containrrr/shoutrrr-action@v1with:url:${{ secrets.SHOUTRRR_URL }}title:Deployed ${{ github.sha }}message:See changes at ${{ github.event.compare }}.
For additional details, visit thefull documentation.
Thanks goes to these wonderful people (emoji key):
Amir Schnell 💻 | nils måsén 💻📖🚧 | Luka Peschke 💻📖 | MrLuje 💻📖 | Simon Aronsson 💻📖🚧 | Arne Jørgensen 📖💻 | Alexei Tighineanu 💻 |
Alexandru Bonini 💻 | Senan Kelly 💻 | JonasPf 💻 | claycooper 📖 | Derzsi Dániel 💻 | Joseph Kavanagh 💻🐛 | Justin Steven 🐛 |
This project follows theall-contributors specification. Contributions of any kind welcome!
- watchtower - process for automating Docker container base image updates that uses shoutrrr for notifications
- kured - kubernetes reboot daemon has adopted shoutrrr as their unified notification method starting with version 1.7.0.
- Green Orb - a versatile 'observe and report' buddy for your application logs
About
Notification library for gophers and their furry friends.
Topics
Resources
License
Code of conduct
Security policy
Stars
Watchers
Forks
Packages0
No packages published