blob: 8acd462729ad39192eda311a6d1820fc180f6f44 [file] [log] [blame]
package alerts
import "context"
// Store is the interface used to persist Alerts.
type Store interface {
// Save can write a new, or update an existing, Config. New Configs will
// have an ID of -1.
Save(ctx context.Context, cfg *Alert) error
// Delete removes the Alert with the given id.
Delete(ctx context.Context, id int) error
// List retrieves all the Alerts.
//
// If includeDeleted is true then deleted Alerts are also included in the
// response.
List(ctx context.Context, includeDeleted bool) ([]*Alert, error)
}