Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Provision ¶
func Provision(ctx context.Context, configDirectory string, alertingService Manager, sqlstore SQLStore, encryptionService encryption.Internal, notificationService *notifications.NotificationService) error
Provision alert notifiers
Types ¶
type Manager ¶
type Manager interface { GetAlertNotifications(ctx context.Context, query *models.GetAlertNotificationsQuery) error CreateAlertNotificationCommand(ctx context.Context, cmd *models.CreateAlertNotificationCommand) error UpdateAlertNotification(ctx context.Context, cmd *models.UpdateAlertNotificationCommand) error DeleteAlertNotification(ctx context.Context, cmd *models.DeleteAlertNotificationCommand) error GetAllAlertNotifications(ctx context.Context, query *models.GetAllAlertNotificationsQuery) error GetOrCreateAlertNotificationState(ctx context.Context, cmd *models.GetOrCreateNotificationStateQuery) error SetAlertNotificationStateToCompleteCommand(ctx context.Context, cmd *models.SetAlertNotificationStateToCompleteCommand) error SetAlertNotificationStateToPendingCommand(ctx context.Context, cmd *models.SetAlertNotificationStateToPendingCommand) error GetAlertNotificationsWithUid(ctx context.Context, query *models.GetAlertNotificationsWithUidQuery) error DeleteAlertNotificationWithUid(ctx context.Context, cmd *models.DeleteAlertNotificationWithUidCommand) error GetAlertNotificationsWithUidToSend(ctx context.Context, query *models.GetAlertNotificationsWithUidToSendQuery) error UpdateAlertNotificationWithUid(ctx context.Context, cmd *models.UpdateAlertNotificationWithUidCommand) error }
type NotificationProvisioner ¶
type NotificationProvisioner struct {
// contains filtered or unexported fields
}
NotificationProvisioner is responsible for provsioning alert notifiers
Click to show internal directories.
Click to hide internal directories.