interactor

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcademicFieldInteractor

type AcademicFieldInteractor struct {
	// contains filtered or unexported fields
}

func (*AcademicFieldInteractor) Get

func (afI *AcademicFieldInteractor) Get() ([]string, error)

type ResourceInteractor

type ResourceInteractor struct {
	// contains filtered or unexported fields
}

func (*ResourceInteractor) GetByIds

func (sI *ResourceInteractor) GetByIds(ids []string) ([]*dto.ResourceDTO, error)

type SubjectInteractor

type SubjectInteractor struct {
	// contains filtered or unexported fields
}

func (*SubjectInteractor) GetById

func (sI *SubjectInteractor) GetById(id string) (*dto.SubjectDTO, error)

func (*SubjectInteractor) GetByIds

func (sI *SubjectInteractor) GetByIds(ids []string) ([]*dto.SubjectDTO, error)

func (SubjectInteractor) GetByRandom

func (sI SubjectInteractor) GetByRandom(category string, series string, academicField string, numRandomSubjects int) ([]*dto.SubjectDTO, error)

func (SubjectInteractor) GetBySearchParameter

func (sI SubjectInteractor) GetBySearchParameter(title string, faculty string, academicField string) ([]*dto.SubjectDTO, error)

func (SubjectInteractor) GetByVideoSearchParameter

func (sI SubjectInteractor) GetByVideoSearchParameter(title string, faculty string) ([]*dto.SubjectWithSpecifiedVideosDTO, error)

type SyllabusInteractor

type SyllabusInteractor struct {
	// contains filtered or unexported fields
}

func (*SyllabusInteractor) GetById

func (sI *SyllabusInteractor) GetById(id string) (*dto.SyllabusDTO, error)

type VideoInteractor

type VideoInteractor struct {
	// contains filtered or unexported fields
}

func NewVideoInteractor

func NewVideoInteractor(sR repository.VideoRepository) *VideoInteractor

func (*VideoInteractor) GetByIds

func (sI *VideoInteractor) GetByIds(ids []string) ([]*dto.VideoDTO, error)

GetByIds returns a slice of `dto.VideoDTO` by specified `videoIds`. This function requires `ids` only contains `videoIds` of one subject.

Jump to

Keyboard shortcuts

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