Documentation ¶
Index ¶
- type Driver
- type ReminderRepository
- func (repo *ReminderRepository) Create(ctx context.Context, create *reminder.Create) (*reminder.Reminder, error)
- func (repo *ReminderRepository) DeleteByID(ctx context.Context, id uuid.UUID) error
- func (repo *ReminderRepository) DeleteByUserID(ctx context.Context, userID uuid.UUID) error
- func (repo *ReminderRepository) GetByID(ctx context.Context, id uuid.UUID) (*reminder.Reminder, error)
- func (repo *ReminderRepository) GetByUserID(ctx context.Context, userID uuid.UUID) ([]*reminder.Reminder, error)
- func (repo *ReminderRepository) GetNext(ctx context.Context) (*reminder.Reminder, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
Driver represents the PostgreSQL storage driver
func (*Driver) Reminders ¶
func (driver *Driver) Reminders() reminder.Repository
type ReminderRepository ¶
type ReminderRepository struct {
// contains filtered or unexported fields
}
ReminderRepository implements the reminder.Repository API using PostgreSQL
func (*ReminderRepository) DeleteByID ¶
func (*ReminderRepository) DeleteByUserID ¶
func (*ReminderRepository) GetByUserID ¶
Click to show internal directories.
Click to hide internal directories.