Documentation
¶
Index ¶
- Constants
- type Service
- func (s *Service) CreateAppointment(params su.CreateAppointmentParams) middleware.Responder
- func (s *Service) ListAvailableTimesForTrainer(params su.ListAvailableTimesForTrainerParams) middleware.Responder
- func (s *Service) ListTrainerAppointments(params st.ListTrainerAppointmentsParams) middleware.Responder
Constants ¶
View Source
const ( CodeNone = iota BadTrainerID = iota + 1 StartTimeInPast TimeIntervalTooLarge InvalidAppointmentStartTime InvalidAppointmentLength OutsideWorkingHours OutsideWorkingDays Holiday // TODO: should come from a config MaxTimeIntervalDays = 31 MaxTimeInterval = time.Hour * 24 * MaxTimeIntervalDays AppointmentLengthMin = 30 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
TODO: split the routes Service - all in one routes support implementation
func (*Service) CreateAppointment ¶
func (s *Service) CreateAppointment(params su.CreateAppointmentParams) middleware.Responder
CreateAppointment ...
func (*Service) ListAvailableTimesForTrainer ¶
func (s *Service) ListAvailableTimesForTrainer(params su.ListAvailableTimesForTrainerParams) middleware.Responder
ListAvailableTimesForTrainer ...
func (*Service) ListTrainerAppointments ¶
func (s *Service) ListTrainerAppointments(params st.ListTrainerAppointmentsParams) middleware.Responder
ListTrainerAppointments ...
Click to show internal directories.
Click to hide internal directories.