mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-15 20:38:00 +00:00
d8e42744b4
* fix: move eventstore pkgs * fix: move eventstore pkgs * fix: remove v2 view * fix: remove v2 view
31 lines
876 B
Go
31 lines
876 B
Go
package view
|
|
|
|
import (
|
|
"github.com/caos/zitadel/internal/eventstore/v1/models"
|
|
"github.com/caos/zitadel/internal/view/repository"
|
|
)
|
|
|
|
const (
|
|
notificationTable = "notification.notifications"
|
|
)
|
|
|
|
func (v *View) GetLatestNotificationSequence() (*repository.CurrentSequence, error) {
|
|
return v.latestSequence(notificationTable)
|
|
}
|
|
|
|
func (v *View) ProcessedNotificationSequence(event *models.Event) error {
|
|
return v.saveCurrentSequence(notificationTable, event)
|
|
}
|
|
|
|
func (v *View) UpdateNotificationSpoolerRunTimestamp() error {
|
|
return v.updateSpoolerRunSequence(notificationTable)
|
|
}
|
|
|
|
func (v *View) GetLatestNotificationFailedEvent(sequence uint64) (*repository.FailedEvent, error) {
|
|
return v.latestFailedEvent(notificationTable, sequence)
|
|
}
|
|
|
|
func (v *View) ProcessedNotificationFailedEvent(failedEvent *repository.FailedEvent) error {
|
|
return v.saveFailedEvent(failedEvent)
|
|
}
|