Documentation
¶
Index ¶
- type Storage
- func (s *Storage) ConnectAppointmentsRepo() (appointments.Repo, error)
- func (s *Storage) ConnectTrainersRepo() (trainers.Repo, error)
- func (s *Storage) FindTrainer(id models.TrainerID) (*models.Trainer, error)
- func (s *Storage) InsertAppointment(appointment models.Appointment) (models.AppointmentID, error)
- func (s *Storage) ListTrainerAppointments(id models.TrainerID, from time.Time, to time.Time) ([]*models.Appointment, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage is an in-memory Storage impl
func NewStorageWithDefaultData ¶
func NewStorageWithDefaultData() *Storage
NewStorageWithDefaultData ...
func (*Storage) ConnectAppointmentsRepo ¶
func (s *Storage) ConnectAppointmentsRepo() (appointments.Repo, error)
ConnectAppointmentsRepo ...
func (*Storage) ConnectTrainersRepo ¶
ConnectTrainersRepo ...
func (*Storage) FindTrainer ¶
FindTrainer ...
func (*Storage) InsertAppointment ¶
func (s *Storage) InsertAppointment(appointment models.Appointment) (models.AppointmentID, error)
InsertAppointment ...
Click to show internal directories.
Click to hide internal directories.