Documentation
¶
Index ¶
- func CreateOrUpdateCourse(courseName string, course Course, c echo.Context) error
- func GetCourse() echo.HandlerFunc
- func GetSkill() echo.HandlerFunc
- func PatchCourse() echo.HandlerFunc
- func PostCourse() echo.HandlerFunc
- func UpgradeProgress() echo.HandlerFunc
- type Course
- type CourseGroup
- type CourseMeta
- type Skill
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrUpdateCourse ¶
CreateOrUpdateCourse crates/updates course
func UpgradeProgress ¶
func UpgradeProgress() echo.HandlerFunc
UpgradeProgress sets the progress of a skill
Types ¶
type Course ¶
type Course struct {
File string
Name string `json:"name"`
Description string `json:"description"`
Author string `json:"author"`
URL string `json:"url"`
Version string `json:"version"`
Icon string `json:"icon"`
Groups []CourseGroup `json:"groups"`
}
Course contains csv/json data
type CourseGroup ¶
type CourseGroup struct {
Name string `json:"name"`
Order int64 `json:"order"`
Skills []Skill `json:"skills"`
}
CourseGroup contains csv/json data
Click to show internal directories.
Click to hide internal directories.