mirror of
https://github.com/mainflux/mainflux.git
synced 2025-05-08 19:29:17 +08:00

* resolve merge conflicts Signed-off-by: aryan <aryangodara03@gmail.com> * change remaining require with assert Signed-off-by: aryan <aryangodara03@gmail.com> * replace assert with require, whenever required. Signed-off-by: aryan <aryangodara03@gmail.com> * fix failing tests Signed-off-by: aryan <aryangodara03@gmail.com> * resolve assert and require Signed-off-by: aryan <aryangodara03@gmail.com> * revert groups_test Signed-off-by: aryan <aryangodara03@gmail.com> --------- Signed-off-by: aryan <aryangodara03@gmail.com>
21 lines
519 B
Go
21 lines
519 B
Go
// Copyright (c) Mainflux
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package notifiers
|
|
|
|
import (
|
|
"errors"
|
|
|
|
"github.com/mainflux/mainflux/pkg/messaging"
|
|
)
|
|
|
|
// ErrNotify wraps sending notification errors,
|
|
var ErrNotify = errors.New("error sending notification")
|
|
|
|
// Notifier represents an API for sending notification.
|
|
type Notifier interface {
|
|
// Notify method is used to send notification for the
|
|
// received message to the provided list of receivers.
|
|
Notify(from string, to []string, msg *messaging.Message) error
|
|
}
|