Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ImportLessonDefs ¶
func ImportLessonDefs(syringeConfig *config.SyringeConfig, fileList []string) (map[int32]*LessonDefinition, error)
Types ¶
type Connection ¶
type IframeResource ¶ added in v0.1.3
type LessonDefinition ¶
type LessonDefinition struct { LessonName string `json:"lessonName" yaml:"lessonName"` LessonID int32 `json:"lessonID" yaml:"lessonID"` IframeResources []*IframeResource `json:"iframeresources" yaml:"iframeresources"` Devices []*Endpoint `json:"devices" yaml:"devices"` Utilities []*Endpoint `json:"utilities" yaml:"utilities"` Blackboxes []*Endpoint `json:"blackboxes" yaml:"blackboxes"` Connections []*Connection `json:"connections" yaml:"connections"` Stages map[int32]*LessonStage `json:"stages" yaml:"stages"` Category string `json:"category" yaml:"category"` LessonDiagram string `json:"lessondiagram" yaml:"lessondiagram"` LessonVideo string `json:"lessonvideo" yaml:"lessonvideo"` Tier string `json:"tier" yaml:"tier"` }
func (*LessonDefinition) HasDevices ¶ added in v0.1.3
func (ld *LessonDefinition) HasDevices() bool
func (*LessonDefinition) JSON ¶
func (ld *LessonDefinition) JSON() string
JSON exports the lesson definition as JSON
type LessonStage ¶
Click to show internal directories.
Click to hide internal directories.