db

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL