Documentation ¶
Index ¶
- type CategoryDB
- func (category *CategoryDB) DeleteCategoryById(categoryId string) error
- func (category *CategoryDB) FindAllCategory() ([]CategoryDB, error)
- func (category *CategoryDB) FindCategoryByCourseID(courseId string) (*CategoryDB, error)
- func (categoryDB *CategoryDB) FindCategoryByID(categoryId string) (CategoryDB, error)
- func (category *CategoryDB) RegisterCategory(name, description string) (CategoryDB, error)
- func (category *CategoryDB) UpdateCategory(id, name, description string) (CategoryDB, error)
- type CourseDB
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) DeleteCategoryById ¶
func (category *CategoryDB) DeleteCategoryById(categoryId string) error
func (*CategoryDB) FindAllCategory ¶
func (category *CategoryDB) FindAllCategory() ([]CategoryDB, error)
func (*CategoryDB) FindCategoryByCourseID ¶
func (category *CategoryDB) FindCategoryByCourseID(courseId string) (*CategoryDB, error)
func (*CategoryDB) FindCategoryByID ¶
func (categoryDB *CategoryDB) FindCategoryByID(categoryId string) (CategoryDB, error)
func (*CategoryDB) RegisterCategory ¶
func (category *CategoryDB) RegisterCategory(name, description string) (CategoryDB, error)
func (*CategoryDB) UpdateCategory ¶
func (category *CategoryDB) UpdateCategory(id, 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.