Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface { GetAllForUser(ctx context.Context, userId sharedTypes.UUID, notifications *[]Notification) error Resend(ctx context.Context, notification Notification) error RemoveById(ctx context.Context, userId sharedTypes.UUID, notificationId sharedTypes.UUID) error }
type Notification ¶
type Notification struct { Id sharedTypes.UUID `json:"_id"` UserId sharedTypes.UUID `json:"user_id"` Expires time.Time `json:"expires,omitempty"` Key string `json:"key"` TemplateKey string `json:"templateKey,omitempty"` MessageOptions json.RawMessage `json:"messageOpts,omitempty"` }
type Notifications ¶
type Notifications []Notification
Click to show internal directories.
Click to hide internal directories.