Documentation
¶
Index ¶
- Variables
- func Migrate(ctx context.Context, db *sql.DB) error
- type Repository
- func (r *Repository) CheckRuntime(ctx context.Context) error
- func (r *Repository) Cleanup(ctx context.Context, before time.Time, limit int) (int64, error)
- func (r *Repository) Consume(ctx context.Context, d n.Event, hash string, now time.Time, ...) (n.Result, error)
- func (r *Repository) List(ctx context.Context, owner string, c n.Cursor, limit int) ([]n.Notification, error)
- func (r *Repository) MarkAllRead(ctx context.Context, owner string, now time.Time) error
- func (r *Repository) MarkRead(ctx context.Context, owner, id string, now time.Time) error
- func (r *Repository) Preferences(ctx context.Context, owner string, value *bool) (n.Preferences, error)
- func (r *Repository) Unread(ctx context.Context, owner string) (int64, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Schema string
Functions ¶
Types ¶
type Repository ¶
func (*Repository) CheckRuntime ¶
func (r *Repository) CheckRuntime(ctx context.Context) error
func (*Repository) List ¶
func (r *Repository) List(ctx context.Context, owner string, c n.Cursor, limit int) ([]n.Notification, error)
func (*Repository) MarkAllRead ¶
func (*Repository) Preferences ¶
func (r *Repository) Preferences(ctx context.Context, owner string, value *bool) (n.Preferences, error)
Click to show internal directories.
Click to hide internal directories.