mirror of
https://github.com/absmach/supermq.git
synced 2026-06-23 07:20:19 +00:00
3bbb25bd64
* Update docker-compose to use SuperMQ Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com> * Remove duplicate services Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com> * Update Bootstrap Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com> * Update other services to use SMQ Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com> * Switch config prefix to SMQ Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com> * Remove leftovers Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com> * Remove duplicate interface definitions Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com> * Remove unused actions Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com> * Remove unused API docs Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com> * Resolve linter comments Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com> * Fix provision Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com> --------- Signed-off-by: Dusan Borovcanin <borovcanindusan1@gmail.com>
23 lines
656 B
Go
23 lines
656 B
Go
// Copyright (c) Abstract Machines
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package notifiers
|
|
|
|
import (
|
|
"errors"
|
|
|
|
"github.com/absmach/supermq/pkg/messaging"
|
|
)
|
|
|
|
// ErrNotify wraps sending notification errors.
|
|
var ErrNotify = errors.New("error sending notification")
|
|
|
|
// Notifier represents an API for sending notification.
|
|
//
|
|
//go:generate mockery --name Notifier --output=./mocks --filename notifier.go --quiet --note "Copyright (c) Abstract Machines"
|
|
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
|
|
}
|