Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildingService ¶
type BuildingService interface { GetBuilding(*string) (*models.Building, error) GetBuildings() ([]*models.Building, error) }
func NewBuildingService ¶
func NewBuildingService(db *sqlx.DB, ctx context.Context) BuildingService
type BuildingServiceImpl ¶
type BuildingServiceImpl struct {
// contains filtered or unexported fields
}
func (*BuildingServiceImpl) GetBuilding ¶
func (b *BuildingServiceImpl) GetBuilding(name *string) (*models.Building, error)
func (*BuildingServiceImpl) GetBuildings ¶
func (b *BuildingServiceImpl) GetBuildings() ([]*models.Building, error)
type CourseService ¶
type CourseService interface { GetCourse(*string) (*models.Course, error) GetCourses() ([]*models.Course, error) }
func NewCourseService ¶
func NewCourseService(db *sqlx.DB, ctx context.Context) CourseService
type CourseServiceImpl ¶
type CourseServiceImpl struct {
// contains filtered or unexported fields
}
func (*CourseServiceImpl) GetCourse ¶
func (b *CourseServiceImpl) GetCourse(courseCode *string) (*models.Course, error)
func (*CourseServiceImpl) GetCourses ¶
func (b *CourseServiceImpl) GetCourses() ([]*models.Course, error)
type StaffService ¶
type StaffService interface { GetStaffMember(*string) (*models.Staff, error) GetAllStaff() ([]*models.Staff, error) }
func NewStaffService ¶
func NewStaffService(db *sqlx.DB, ctx context.Context) StaffService
type StaffServiceImpl ¶
type StaffServiceImpl struct {
// contains filtered or unexported fields
}
func (*StaffServiceImpl) GetAllStaff ¶
func (b *StaffServiceImpl) GetAllStaff() ([]*models.Staff, error)
func (*StaffServiceImpl) GetStaffMember ¶
func (b *StaffServiceImpl) GetStaffMember(name *string) (*models.Staff, error)
Click to show internal directories.
Click to hide internal directories.