Documentation ¶
Index ¶
- type DB
- func (db *DB) Create(ctx context.Context, client *m.Client) error
- func (db *DB) CreateProvider(ctx context.Context, prov *m.Provider) error
- func (db *DB) Get(ctx context.Context, clientId uuid.UUID) (*m.Client, error)
- func (db *DB) GetAppointmentsByDay(ctx context.Context, providerId *uuid.UUID, date time.Time) ([]*m.Appointment, error)
- func (db *DB) GetProviderById(ctx context.Context, providerId *uuid.UUID) (*m.Provider, error)
- func (db *DB) UpdateAppointment(ctx context.Context, appt *m.Appointment) (*m.Appointment, error)
- func (db *DB) UpsertAppointments(ctx context.Context, appts []*m.Appointment) error
- type MockDB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
func (*DB) CreateProvider ¶
func (*DB) GetAppointmentsByDay ¶
func (db *DB) GetAppointmentsByDay(ctx context.Context, providerId *uuid.UUID, date time.Time) ([]*m.Appointment, error)
Fetch appointments from the database for the given day
func (*DB) GetProviderById ¶
func (*DB) UpdateAppointment ¶
func (db *DB) UpdateAppointment(ctx context.Context, appt *m.Appointment) (*m.Appointment, error)
func (*DB) UpsertAppointments ¶
Click to show internal directories.
Click to hide internal directories.