Documentation ¶
Index ¶
- func NewNotificationRepository(db *sqlx.DB) (port.NotificationRepository, error)
- type NotificationRepository
- func (r *NotificationRepository) CreateNotification(ctx context.Context, notificationIn models.Notification) (notification models.Notification, err error)
- func (r *NotificationRepository) ListNotifications(ctx context.Context, resultSelector query.ResultSelector) (notifications []models.Notification, totalResults uint64, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNotificationRepository ¶
func NewNotificationRepository(db *sqlx.DB) (port.NotificationRepository, error)
Types ¶
type NotificationRepository ¶
type NotificationRepository struct {
// contains filtered or unexported fields
}
func (*NotificationRepository) CreateNotification ¶
func (r *NotificationRepository) CreateNotification(ctx context.Context, notificationIn models.Notification) (notification models.Notification, err error)
func (*NotificationRepository) ListNotifications ¶
func (r *NotificationRepository) ListNotifications(ctx context.Context, resultSelector query.ResultSelector) (notifications []models.Notification, totalResults uint64, err error)
Click to show internal directories.
Click to hide internal directories.