Documentation
¶
Overview ¶
Package consumers contain the domain concept definitions needed to support Mainflux consumer services functionality.
Index ¶
- func Alarms(id string, sub messaging.AlarmSubscriber, c AlarmConsumer) error
- func Messages(id string, sub messaging.Subscriber, c MessageConsumer, subjects ...string) error
- func Notifications(id string, sub messaging.NotificationSubscriber, c NotificationConsumer, ...) error
- func Webhooks(id string, sub messaging.WebhookSubscriber, c WebhookConsumer) error
- type AlarmConsumer
- type MessageConsumer
- type NotificationConsumer
- type WebhookConsumer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Alarms ¶ added in v0.40.0
func Alarms(id string, sub messaging.AlarmSubscriber, c AlarmConsumer) error
Alarms subscribes the given AlarmConsumer to alarms.
func Messages ¶ added in v0.40.0
func Messages(id string, sub messaging.Subscriber, c MessageConsumer, subjects ...string) error
Messages subscribes the given MessageConsumer to the given subjects.
func Notifications ¶ added in v0.42.0
func Notifications(id string, sub messaging.NotificationSubscriber, c NotificationConsumer, subject string) error
Notifications subscribes the given NotificationConsumer to the given subject.
func Webhooks ¶ added in v0.42.0
func Webhooks(id string, sub messaging.WebhookSubscriber, c WebhookConsumer) error
Webhooks subscribes the given WebhookConsumer to webhook forwarding.
Types ¶
type AlarmConsumer ¶ added in v0.40.0
AlarmConsumer specifies an API for consuming protomfx.Alarm.
type MessageConsumer ¶ added in v0.40.0
MessageConsumer specifies an API for consuming protomfx.Message.
type NotificationConsumer ¶ added in v0.42.0
type NotificationConsumer interface {
ConsumeNotification(subject string, notification protomfx.Notification) error
}
NotificationConsumer specifies an API for consuming protomfx.Notification.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package notifiers contain the domain concept definitions needed to support Mainflux notifications functionality.
|
Package notifiers contain the domain concept definitions needed to support Mainflux notifications functionality. |
|
smpp
Package smpp contains the domain concept definitions needed to support Mainflux SMS notifications.
|
Package smpp contains the domain concept definitions needed to support Mainflux SMS notifications. |
|
smtp
Package smtp contains the domain concept definitions needed to support Mainflux SMTP notifications.
|
Package smtp contains the domain concept definitions needed to support Mainflux SMTP notifications. |
|
Package writers contain the domain concept definitions needed to support Mainflux writer services functionality.
|
Package writers contain the domain concept definitions needed to support Mainflux writer services functionality. |
|
postgres
Package postgres contains repository implementations using Postgres as the underlying database.
|
Package postgres contains repository implementations using Postgres as the underlying database. |
|
timescale
Package timescale contains repository implementations using Timescale as the underlying database.
|
Package timescale contains repository implementations using Timescale as the underlying database. |
Click to show internal directories.
Click to hide internal directories.