Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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=
```