Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Svc ¶
type Svc struct {
// contains filtered or unexported fields
}
Svc is the service for appointment related operations
func NewAppointmentSvc ¶
NewAppointmentSvc creates a new svc instance
func (Svc) CreateAppointment ¶
func (svc Svc) CreateAppointment(startTime time.Time, endTime time.Time, address string, note string) (*domaintype.Appointment, error)
CreateAppointment creates a new appointment
func (Svc) GetAllAppointments ¶
func (svc Svc) GetAllAppointments() []*domaintype.Appointment
GetAllAppointments gets all Appointments
func (Svc) GetAppointment ¶
func (svc Svc) GetAppointment(id string) (*domaintype.Appointment, error)
GetAppointment gets an Appointment by ID
Click to show internal directories.
Click to hide internal directories.