Mainflux.mainflux/consumers/notifiers
Manuel Imperiale b18c9e79dc
NOISSUE - Add timestamp transformation rules for specifc JSON fields (#1514)
* NOISSUE - Add timestamp transformation rules for specifc JSON fields

Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>

* Add tests and defaults

Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>

* Fix reviews

Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>

* Fix Created

Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>

* Fix READMEs

Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>

* Fix Config file

Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>

* Improve the timestamp Config structure

Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>

* Fix typos

Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>

* Fix smpp

Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>

* Fix reviews

Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>

* Rm duplicated Unmarshal

Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>

* Extract the error var

Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>

* Fix review

Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>

* Return error if time field transformation fails

Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2021-12-14 11:17:23 +01:00
..
api NOISSUE - Add SMPP notifier (#1464) 2021-10-06 14:34:23 +02:00
mocks NOISSUE - Listing Policies (#1498) 2021-11-19 14:32:38 +01:00
postgres NOISSUE - Update docker-compose images to latest release (#1419) 2021-05-24 18:35:07 +02:00
smpp NOISSUE - Add timestamp transformation rules for specifc JSON fields (#1514) 2021-12-14 11:17:23 +01:00
smtp NOISSUE - Use github action for showing OpenAPI spec with Swagger UI (#1427) 2021-06-23 13:31:46 +02:00
tracing MF-1311 - Add Notifications service (#1324) 2021-02-01 14:08:10 +01:00
README.md NOISSUE - Use github action for showing OpenAPI spec with Swagger UI (#1427) 2021-06-23 13:31:46 +02:00
docs.go MF-1311 - Add Notifications service (#1324) 2021-02-01 14:08:10 +01:00
notifier.go MF-1311 - Add Notifications service (#1324) 2021-02-01 14:08:10 +01:00
service.go NOISSUE - Add SMPP notifier (#1464) 2021-10-06 14:34:23 +02:00
service_test.go NOISSUE - Add SMPP notifier (#1464) 2021-10-06 14:34:23 +02:00
subscriptions.go MF-1311 - Add Notifications service (#1324) 2021-02-01 14:08:10 +01:00

README.md

Notifiers service

Notifiers service provides a service for sending notifications using Notifiers. Notifiers service can be configured to use different types of Notifiers to send different types of notifications such as SMS messages, emails, or push notifications. Service is extensible so that new implementations of Notifiers can be easily added. Notifiers are not standalone services but rather dependencies used by Notifiers service for sending notifications over specific protocols.

Configuration

The service is configured using the environment variables. The environment variables needed for service configuration depend on the underlying Notifier. An example of the service configuration for SMTP Notifier can be found in SMTP Notifier documentation. Note that any unset variables will be replaced with their default values.

Usage

Subscriptions service will start consuming messages and sending notifications when a message is received.