Documentation ¶
Index ¶
- func ImportCurriculum(dm db.DataManager, cfg config.AntidoteConfig) error
- func ReadCollections(cfg config.AntidoteConfig) ([]*models.Collection, error)
- func ReadCurriculum(cfg config.AntidoteConfig) (*models.Curriculum, error)
- func ReadImages(cfg config.AntidoteConfig) ([]*models.Image, error)
- func ReadLessons(cfg config.AntidoteConfig) ([]*models.Lesson, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ImportCurriculum ¶
func ImportCurriculum(dm db.DataManager, cfg config.AntidoteConfig) error
ImportCurriculum provides a single function for all curriculum resources to be imported and placed within the backing data store
func ReadCollections ¶
func ReadCollections(cfg config.AntidoteConfig) ([]*models.Collection, error)
ReadCollections reads collection definitions from the filesystem, validates them, and returns them in a slice.
func ReadCurriculum ¶
func ReadCurriculum(cfg config.AntidoteConfig) (*models.Curriculum, error)
func ReadImages ¶
func ReadImages(cfg config.AntidoteConfig) ([]*models.Image, error)
ReadImages reads image definitions from the filesystem, validates them, and returns them in a slice.
func ReadLessons ¶
func ReadLessons(cfg config.AntidoteConfig) ([]*models.Lesson, error)
ReadLessons reads lesson definitions from the filesystem, validates them, and returns them in a slice.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.