repository

package
v0.0.0-...-5f5a93c Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcademicFieldRepository

type AcademicFieldRepository interface {
	Get() ([]string, error)
}

type ResourceRepository

type ResourceRepository interface {
	GetByIds(ids []model.ResourceId) ([]*model.Resource, error)
}

type SubjectRepository

type SubjectRepository interface {
	GetById(id model.SubjectId) (*model.Subject, error)
	GetByIds(ids []model.SubjectId) ([]*model.Subject, error)
	GetBySearchParameter(title string, faculty string, academicField string) ([]*model.Subject, error)
	GetByRandom(category string, series string, academicField string, numSubjects int) ([]*model.Subject, error)
	GetByVideoIds(videoIds []model.VideoId) ([]*model.Subject, error)
}

type SyllabusRepository

type SyllabusRepository interface {
	GetById(id model.SyllabusId) (*model.Syllabus, error)
}

type VideoRepository

type VideoRepository interface {
	GetByIds(ids []model.VideoId) ([]*model.Video, error)
	GetBySearchParameter(title string, faculty string) ([]*model.Video, error)
}

Jump to

Keyboard shortcuts

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