services

package
v0.0.0-...-df709e4 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 4 Imported by: 0

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)

Jump to

Keyboard shortcuts

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