Documentation
¶
Index ¶
- func NormalizeLevel(level string) string
- type ItemType
- type LearnItem
- type LearningPath
- func AutoFillPaths(packs []*content.Pack, journeys []learning.LearningJourney, ...) []LearningPath
- func FindPath(paths []LearningPath, id string) *LearningPath
- func LoadPaths(packs []*content.Pack) []LearningPath
- func ResolvePaths(paths []LearningPath, journeys []learning.LearningJourney, ...) []LearningPath
- type PathStep
- type RecommendOptions
- type Recommendations
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeLevel ¶
NormalizeLevel converts any level string to lowercase canonical form.
Types ¶
type LearnItem ¶
type LearnItem struct {
Type ItemType
Title string
Slug string
Level string
Duration string
URL string
Featured bool
PackID string
Product string
}
LearnItem is a unified wrapper around content from any source.
func Search ¶
func Search( journeys []learning.LearningJourney, tuts []tutorials.TutorialMeta, missions []discovery.Mission, query string, opts RecommendOptions, ) []LearnItem
type LearningPath ¶
type LearningPath struct {
ID string
Name string
Description string
Level string
PackID string
Steps []PathStep
Generated bool
}
LearningPath is a named, ordered sequence of learn items.
func AutoFillPaths ¶
func AutoFillPaths( packs []*content.Pack, journeys []learning.LearningJourney, tuts []tutorials.TutorialMeta, missions []discovery.Mission, ) []LearningPath
func FindPath ¶
func FindPath(paths []LearningPath, id string) *LearningPath
func LoadPaths ¶
func LoadPaths(packs []*content.Pack) []LearningPath
func ResolvePaths ¶
func ResolvePaths( paths []LearningPath, journeys []learning.LearningJourney, tuts []tutorials.TutorialMeta, missions []discovery.Mission, ) []LearningPath
type RecommendOptions ¶
RecommendOptions controls filtering for recommendations and search.
type Recommendations ¶
Recommendations holds profile-filtered items grouped by type.
func Recommend ¶
func Recommend( journeys []learning.LearningJourney, tuts []tutorials.TutorialMeta, missions []discovery.Mission, packs []*content.Pack, opts RecommendOptions, ) *Recommendations
Click to show internal directories.
Click to hide internal directories.