Documentation
¶
Index ¶
- type Chapter
- type ChapterId
- type Resource
- type ResourceId
- type Subject
- func (s *Subject) AcademicField() string
- func (s *Subject) Category() string
- func (s *Subject) Department() string
- func (s *Subject) Faculty() string
- func (s *Subject) FirstHeldOn() time.Time
- func (s *Subject) FreeDescription() string
- func (s *Subject) Id() SubjectId
- func (s *Subject) Language() string
- func (s *Subject) Location() string
- func (s *Subject) RelatedSubjectIds() []SubjectId
- func (s *Subject) ResourceIds() []ResourceId
- func (s *Subject) Series() string
- func (s *Subject) SyllabusId() *SyllabusId
- func (s *Subject) ThumbnailLink() string
- func (s *Subject) Title() string
- func (s *Subject) VideoIds() []VideoId
- type SubjectId
- type Subpage
- type SubpageId
- type Syllabus
- func (s *Syllabus) AcademicYear() int16
- func (s *Syllabus) AssignedGrade() string
- func (s *Syllabus) CourseDayPeriod() string
- func (s *Syllabus) CourseFormat() string
- func (s *Syllabus) CourseRequirement() string
- func (s *Syllabus) Faculty() string
- func (s *Syllabus) GradingMethod() string
- func (s *Syllabus) Id() SyllabusId
- func (s *Syllabus) Language() string
- func (s *Syllabus) LessonPlan() string
- func (s *Syllabus) NumCredit() int8
- func (s *Syllabus) Objective() string
- func (s *Syllabus) OutClassLearning() string
- func (s *Syllabus) Outline() string
- func (s *Syllabus) Reference() string
- func (s *Syllabus) Remark() string
- func (s *Syllabus) Semester() string
- func (s *Syllabus) SubjectNumbering() string
- func (s *Syllabus) Subpages() []Subpage
- func (s *Syllabus) TargetedAudience() string
- type SyllabusId
- type Translation
- type TranslationId
- type Video
- func (v *Video) Chapters() []Chapter
- func (v *Video) Faculty() string
- func (v *Video) Id() VideoId
- func (v *Video) Language() string
- func (v *Video) LecturedOn() time.Time
- func (v *Video) Link() string
- func (v *Video) Ordering() int
- func (v *Video) Title() string
- func (v *Video) Transcription() string
- func (v *Video) Translations() []Translation
- func (v *Video) VideoLength() time.Duration
- type VideoId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chapter ¶
type Chapter struct {
// contains filtered or unexported fields
}
func (*Chapter) ThumbnailLink ¶
type ChapterId ¶
func NewChapterId ¶
NewChapterId generate a new ChapterId from a string or []byte representation of a ULID.
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
func (*Resource) Description ¶
func (*Resource) Id ¶
func (r *Resource) Id() ResourceId
type ResourceId ¶
func NewResourceId ¶
func NewResourceId[T string | []byte](ulidExp T) (*ResourceId, error)
NewResourceId generate a new ResourceId from a string or []byte representation of a ULID.
func (ResourceId) ByteSlice ¶
func (s ResourceId) ByteSlice() []byte
func (ResourceId) String ¶
func (s ResourceId) String() string
type Subject ¶
type Subject struct {
// contains filtered or unexported fields
}
func NewSubjectFromRepository ¶
func NewSubjectFromRepository( id SubjectId, category string, title string, videoIds []VideoId, location string, resourceIds []ResourceId, relatedSubjectIds []SubjectId, department string, firstHeldOn time.Time, faculty string, language string, freeDescription string, syllabusId *SyllabusId, series string, academicField string, thumbnailLink string, ) *Subject
func (*Subject) AcademicField ¶
func (*Subject) Department ¶
func (*Subject) FirstHeldOn ¶
func (*Subject) FreeDescription ¶
func (*Subject) RelatedSubjectIds ¶
func (*Subject) ResourceIds ¶
func (s *Subject) ResourceIds() []ResourceId
func (*Subject) SyllabusId ¶
func (s *Subject) SyllabusId() *SyllabusId
func (*Subject) ThumbnailLink ¶
type SubjectId ¶
func NewSubjectId ¶
NewSubjectId generate a new SubjectId from a string or []byte representation of a ULID.
type Subpage ¶
type Subpage struct {
// contains filtered or unexported fields
}
type SubpageId ¶
func NewSubpageId ¶
NewSubpageId generate a new SubpageId from a string or []byte representation of a ULID.
type Syllabus ¶
type Syllabus struct {
// contains filtered or unexported fields
}
func NewSyllabusFromRepository ¶
func NewSyllabusFromRepository( id SyllabusId, faculty string, language string, subjectNumbering string, academicYear int16, semester string, numCredit int8, courseFormat string, assignedGrade string, targetedAudience string, courseDayPeriod string, outline string, objective string, lessonPlan string, gradingMethod string, courseRequirement string, outClassLearning string, reference string, remark string, subpages []Subpage, ) *Syllabus
func (*Syllabus) AcademicYear ¶
func (*Syllabus) AssignedGrade ¶
func (*Syllabus) CourseDayPeriod ¶
func (*Syllabus) CourseFormat ¶
func (*Syllabus) CourseRequirement ¶
func (*Syllabus) GradingMethod ¶
func (*Syllabus) Id ¶
func (s *Syllabus) Id() SyllabusId
func (*Syllabus) LessonPlan ¶
func (*Syllabus) OutClassLearning ¶
func (*Syllabus) SubjectNumbering ¶
func (*Syllabus) TargetedAudience ¶
type SyllabusId ¶
func NewSyllabusId ¶
func NewSyllabusId[T string | []byte](ulidExp T) (*SyllabusId, error)
func (SyllabusId) ByteSlice ¶
func (s SyllabusId) ByteSlice() []byte
func (SyllabusId) String ¶
func (s SyllabusId) String() string
type Translation ¶
type Translation struct {
// contains filtered or unexported fields
}
func NewTranslationFromRepository ¶
func NewTranslationFromRepository( id TranslationId, languageCode string, translation string, ) *Translation
func (*Translation) Id ¶
func (t *Translation) Id() TranslationId
func (*Translation) LanguageCode ¶
func (t *Translation) LanguageCode() string
func (*Translation) Translation ¶
func (t *Translation) Translation() string
type TranslationId ¶
func NewTranslationId ¶
func NewTranslationId[T string | []byte](ulidExp T) (*TranslationId, error)
NewTranslationId generate a new TranslationId from a string or []byte representation of a ULID.
func (TranslationId) ByteSlice ¶
func (s TranslationId) ByteSlice() []byte
func (TranslationId) String ¶
func (s TranslationId) String() string
type Video ¶
type Video struct {
// contains filtered or unexported fields
}
func NewVideoFromRepository ¶
func (*Video) LecturedOn ¶
func (*Video) Transcription ¶
func (*Video) Translations ¶
func (v *Video) Translations() []Translation
func (*Video) VideoLength ¶
type VideoId ¶
func NewVideoId ¶
NewVideoId generate a new VideoId from a string or []byte representation of a ULID.
Click to show internal directories.
Click to hide internal directories.