Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CategoryDB ¶
type CategoryDB struct { ID string Name string Description string // contains filtered or unexported fields }
func NewCategoryDB ¶
func NewCategoryDB(db *sql.DB) *CategoryDB
func (*CategoryDB) FindAllCategory ¶
func (category *CategoryDB) FindAllCategory() ([]CategoryDB, error)
func (*CategoryDB) FindCategoryByCourseID ¶
func (category *CategoryDB) FindCategoryByCourseID(courseId string) (*CategoryDB, error)
func (*CategoryDB) RegisterCategory ¶
func (category *CategoryDB) RegisterCategory(name, description string) (CategoryDB, error)
type CourseDB ¶
type CourseDB struct { ID string Name string Description string CategoryID string // contains filtered or unexported fields }
func NewCourseDB ¶
func (*CourseDB) FindAllCourse ¶
func (*CourseDB) FindAllCourseByCategoryID ¶
Click to show internal directories.
Click to hide internal directories.