storage

package
v0.0.0-...-6bdd1f0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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

func (s *Storage) ConnectTrainersRepo() (trainers.Repo, error)

ConnectTrainersRepo ...

func (*Storage) FindTrainer

func (s *Storage) FindTrainer(id models.TrainerID) (*models.Trainer, error)

FindTrainer ...

func (*Storage) InsertAppointment

func (s *Storage) InsertAppointment(appointment models.Appointment) (models.AppointmentID, error)

InsertAppointment ...

func (*Storage) ListTrainerAppointments

func (s *Storage) ListTrainerAppointments(id models.TrainerID, from time.Time, to time.Time) ([]*models.Appointment, error)

ListTrainerAppointments ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL