application

package
v1.3.1-dev.18.0...-398431f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNotification

func AddNotification(n models.Notification, ctx context.Context, dic *di.Container) (id string, edgeXerr errors.EdgeX)

The AddNotification function accepts the new Notification model from the controller function and then invokes AddNotification function of infrastructure layer to add new Notification

func AddSubscription

func AddSubscription(d models.Subscription, ctx context.Context, dic *di.Container) (id string, edgeXerr errors.EdgeX)

The AddSubscription function accepts the new Subscription model from the controller function and then invokes AddSubscription function of infrastructure layer to add new Subscription

func AllSubscriptions

func AllSubscriptions(offset, limit int, dic *di.Container) (subscriptions []dtos.Subscription, err errors.EdgeX)

AllSubscriptions queries subscriptions by offset and limit

func AllTransmissions

func AllTransmissions(offset, limit int, dic *di.Container) (transmissions []dtos.Transmission, err errors.EdgeX)

AllTransmissions queries transmissions by offset and limit

func CleanupNotificationsByAge

func CleanupNotificationsByAge(age int64, dic *di.Container) errors.EdgeX

CleanupNotificationsByAge invokes the infrastructure layer function to remove notifications that are older than age. And the corresponding transmissions will also be deleted Age is supposed in milliseconds since modified timestamp.

func DeleteNotificationById

func DeleteNotificationById(id string, dic *di.Container) errors.EdgeX

DeleteNotificationById deletes the notification by id and all of its associated transmissions

func DeleteProcessedNotificationsByAge

func DeleteProcessedNotificationsByAge(age int64, dic *di.Container) errors.EdgeX

DeleteProcessedNotificationsByAge invokes the infrastructure layer function to remove processed notifications that are older than age. And the corresponding transmissions will also be deleted Age is supposed in milliseconds since modified timestamp.

func DeleteProcessedTransmissionsByAge

func DeleteProcessedTransmissionsByAge(age int64, dic *di.Container) errors.EdgeX

DeleteProcessedTransmissionsByAge invokes the infrastructure layer function to remove the processed transmissions that are older than age. Age is supposed in milliseconds since created timestamp.

func DeleteSubscriptionByName

func DeleteSubscriptionByName(name string, ctx context.Context, dic *di.Container) errors.EdgeX

DeleteSubscriptionByName deletes the subscription by name

func NotificationById

func NotificationById(id string, dic *di.Container) (notification dtos.Notification, edgeXerr errors.EdgeX)

NotificationById queries notification by ID

func NotificationsByCategory

func NotificationsByCategory(offset, limit int, category string, dic *di.Container) (notifications []dtos.Notification, err errors.EdgeX)

NotificationsByCategory queries notifications with offset, limit, and category

func NotificationsByLabel

func NotificationsByLabel(offset, limit int, label string, dic *di.Container) (notifications []dtos.Notification, err errors.EdgeX)

NotificationsByLabel queries notifications with offset, limit, and label

func NotificationsByStatus

func NotificationsByStatus(offset, limit int, status string, dic *di.Container) (notifications []dtos.Notification, err errors.EdgeX)

NotificationsByStatus queries notifications with offset, limit, and status

func NotificationsBySubscriptionName

func NotificationsBySubscriptionName(offset, limit int, subscriptionName string, dic *di.Container) (notifications []dtos.Notification, err errors.EdgeX)

NotificationsBySubscriptionName queries notifications by offset, limit and subscriptionName

func NotificationsByTimeRange

func NotificationsByTimeRange(start int, end int, offset int, limit int, dic *di.Container) (notifications []dtos.Notification, err errors.EdgeX)

NotificationsByTimeRange query notifications with offset, limit and time range

func PatchSubscription

func PatchSubscription(ctx context.Context, dto dtos.UpdateSubscription, dic *di.Container) errors.EdgeX

PatchSubscription executes the PATCH operation with the subscription DTO to replace the old data

func SubscriptionByName

func SubscriptionByName(name string, dic *di.Container) (subscription dtos.Subscription, err errors.EdgeX)

SubscriptionByName queries subscription by name

func SubscriptionsByCategory

func SubscriptionsByCategory(offset, limit int, category string, dic *di.Container) (subscriptions []dtos.Subscription, err errors.EdgeX)

SubscriptionsByCategory queries subscriptions with offset, limit, and category

func SubscriptionsByLabel

func SubscriptionsByLabel(offset, limit int, label string, dic *di.Container) (subscriptions []dtos.Subscription, err errors.EdgeX)

SubscriptionsByLabel queries subscriptions with offset, limit, and label

func SubscriptionsByReceiver

func SubscriptionsByReceiver(offset, limit int, receiver string, dic *di.Container) (subscriptions []dtos.Subscription, err errors.EdgeX)

SubscriptionsByReceiver queries subscriptions with offset, limit, and receiver

func TransmissionById

func TransmissionById(id string, dic *di.Container) (trans dtos.Transmission, edgeXerr errors.EdgeX)

TransmissionById invokes the infrastructure layer function to query transmission by ID

func TransmissionsByStatus

func TransmissionsByStatus(offset, limit int, status string, dic *di.Container) (transmissions []dtos.Transmission, err errors.EdgeX)

TransmissionsByStatus queries transmissions with offset, limit, and status

func TransmissionsBySubscriptionName

func TransmissionsBySubscriptionName(offset, limit int, subscriptionName string, dic *di.Container) (transmissions []dtos.Transmission, err errors.EdgeX)

TransmissionsBySubscriptionName queries transmissions with offset, limit, and subscription name

func TransmissionsByTimeRange

func TransmissionsByTimeRange(start int, end int, offset int, limit int, dic *di.Container) (transmissions []dtos.Transmission, err errors.EdgeX)

TransmissionsByTimeRange query transmissions with offset, limit and time range

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL