Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ferranbt/go-messaging
Library to send messages to different messaging platforms
https://github.com/ferranbt/go-messaging
Last synced: 10 days ago
JSON representation
Library to send messages to different messaging platforms
- Host: GitHub
- URL: https://github.com/ferranbt/go-messaging
- Owner: ferranbt
- License: mpl-2.0
- Created: 2018-05-10T13:02:57.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-08-06T07:02:58.000Z (over 5 years ago)
- Last Synced: 2023-03-04T02:13:14.483Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go-Messaging
`go-messaging` is a Go library to send messages to different messaging platforms via the same interface. The configuration for each platform is provided as a list of key/value tuples. This library has been inspired by [go-discover](https://github.com/hashicorp/go-discover).
## Usage
```
conf := "platform=riot url= user= token="
platform, err := platforms.NewPlatform(conf)
if err != nil {
panic(err)
}platform.Send("", "Hello World")
```## Platforms
The following messaging platforms are available in go-messaging
### Riot
```
platform=riot url= user= token=
```### RocketChat
```
platform=rocketchat url= email= password=
```### Slack
```
platform=slack token=
```