Documentation
¶
Index ¶
- type Repo
- func (r *Repo) Allowed(ctx context.Context, userID, typ string) (bool, error)
- func (r *Repo) Archive(ctx context.Context, userID, notificationID string) error
- func (r *Repo) EmailAllowed(ctx context.Context, userID, typ string) (bool, error)
- func (r *Repo) Insert(ctx context.Context, n app.NotifyInput, now time.Time) (bool, error)
- func (r *Repo) List(ctx context.Context, userID string) ([]app.Preference, error)
- func (r *Repo) ListInbox(ctx context.Context, userID string, limit int) ([]app.Notification, error)
- func (r *Repo) MarkAllRead(ctx context.Context, userID string) error
- func (r *Repo) MarkRead(ctx context.Context, userID, notificationID string) error
- func (r *Repo) UnreadCount(ctx context.Context, userID string) (int, error)
- func (r *Repo) Upsert(ctx context.Context, userID, typ string, email, inApp *bool) (app.Preference, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.