Skip to content

Commit

Permalink
notifier: move Service interface here
Browse files Browse the repository at this point in the history
Signed-off-by: Hank Donnay <hdonnay@redhat.com>
  • Loading branch information
hdonnay committed Feb 22, 2022
1 parent 0733900 commit fb1c023
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions notifier/service.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package notifier

import (
"context"

"github.com/google/uuid"
)

// Service is an interface wrapping ClairV4's notifier functionality.
//
// This remains an interface so remote clients may implement as well.
type Service interface {
// Retrieves an optional paginated set of notifications given an notification id
Notifications(ctx context.Context, id uuid.UUID, page *Page) ([]Notification, Page, error)
// Deletes the provided notification id
DeleteNotifications(ctx context.Context, id uuid.UUID) error
}

0 comments on commit fb1c023

Please sign in to comment.