Documentation
¶
Index ¶
Constants ¶
View Source
const NotificationType = "notification"
Variables ¶
This section is empty.
Functions ¶
func NewIndexMapping ¶
func NewIndexMapping() mapping.IndexMapping
func NewNotificationDocumentMapping ¶
func NewNotificationDocumentMapping() *mapping.DocumentMapping
Types ¶
type NotificationEntry ¶
type NotificationEntry struct {
Created time.Time
Modified time.Time
NotificationType core.NotificationType
Message core.NotificationMessage
Target *core.NotificationTarget
BrokerIdentifier string
AccountIdentifier string
Stage string
}
func (NotificationEntry) Type ¶
func (a NotificationEntry) Type() string
type NotificationFinder ¶
type NotificationFinder interface {
Find(
ctx context.Context,
tx libkv.Tx,
from *libtime.DateTime,
until *libtime.DateTime,
types core.NotificationTypes,
targets []core.NotificationTarget,
brokerIdentifiers []string,
accountIdentifiers []string,
stages []string,
query string,
limit int,
) ([]core.Notification, error)
}
func NewNotificationFinder ¶
func NewNotificationFinder( notificationGetterTx core.NotificationGetterTx, notificationIndex NotificationIndexSearcher, ) NotificationFinder
type NotificationIndexSearcher ¶
type NotificationIndexSearcher interface {
Search(
ctx context.Context,
from *libtime.DateTime,
until *libtime.DateTime,
types core.NotificationTypes,
targets []core.NotificationTarget,
brokerIdentifiers []string,
accountIdentifiers []string,
stages []string,
query string,
limit int,
) (base.Identifiers, error)
}
func NewNotificationIndexSearcher ¶
func NewNotificationIndexSearcher( index bleve.Index, ) NotificationIndexSearcher
type NotificationIndexer ¶
type NotificationIndexer interface {
Add(ctx context.Context, notification core.Notification) error
Remove(ctx context.Context, notificationIdentifier base.Identifier) error
}
func NewNotificationIndexer ¶
func NewNotificationIndexer(index index.Index) NotificationIndexer
Click to show internal directories.
Click to hide internal directories.