Documentation ¶
Index ¶
- type MatrixRepository
- func (r MatrixRepository) AddSubject(ms *domain.MatrixSubject) error
- func (r MatrixRepository) CourseMatrices(courseUUID uuid.UUID) ([]domain.Matrix, error)
- func (r MatrixRepository) CourseMatrixExists(courseUUID uuid.UUID, matrixUUID uuid.UUID) (bool, error)
- func (r MatrixRepository) CreateMatrix(matrix *domain.Matrix) error
- func (r MatrixRepository) DeleteMatrix(matrix *domain.DeletedMatrix) error
- func (r MatrixRepository) Matrices() ([]domain.Matrix, error)
- func (r MatrixRepository) Matrix(matrixUUID uuid.UUID) (domain.Matrix, error)
- func (r MatrixRepository) RemoveSubject(matrixUUID, subjectUUID uuid.UUID) error
- func (r MatrixRepository) UpdateMatrix(matrix *domain.Matrix) error
- type SubjectRepository
- func (r SubjectRepository) CreateSubject(sub *domain.Subject) error
- func (r SubjectRepository) DeleteSubject(id uuid.UUID) error
- func (r SubjectRepository) Subject(id uuid.UUID) (domain.Subject, error)
- func (r SubjectRepository) Subjects() ([]domain.Subject, error)
- func (r SubjectRepository) UpdateSubject(sub *domain.Subject) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MatrixRepository ¶
type MatrixRepository struct {
// contains filtered or unexported fields
}
func NewMatrixRepository ¶
func NewMatrixRepository(db *sqlx.DB) (MatrixRepository, error)
func (MatrixRepository) AddSubject ¶
func (r MatrixRepository) AddSubject(ms *domain.MatrixSubject) error
func (MatrixRepository) CourseMatrices ¶
func (MatrixRepository) CourseMatrixExists ¶
func (MatrixRepository) CreateMatrix ¶
func (r MatrixRepository) CreateMatrix(matrix *domain.Matrix) error
func (MatrixRepository) DeleteMatrix ¶
func (r MatrixRepository) DeleteMatrix(matrix *domain.DeletedMatrix) error
func (MatrixRepository) RemoveSubject ¶
func (r MatrixRepository) RemoveSubject(matrixUUID, subjectUUID uuid.UUID) error
func (MatrixRepository) UpdateMatrix ¶
func (r MatrixRepository) UpdateMatrix(matrix *domain.Matrix) error
type SubjectRepository ¶
type SubjectRepository struct {
// contains filtered or unexported fields
}
func NewSubjectRepository ¶
func NewSubjectRepository(db *sqlx.DB) (SubjectRepository, error)
NewSubjectRepository creates the subject SubjectRepository.
func (SubjectRepository) CreateSubject ¶
func (r SubjectRepository) CreateSubject(sub *domain.Subject) error
func (SubjectRepository) DeleteSubject ¶
func (r SubjectRepository) DeleteSubject(id uuid.UUID) error
func (SubjectRepository) UpdateSubject ¶
func (r SubjectRepository) UpdateSubject(sub *domain.Subject) error
Click to show internal directories.
Click to hide internal directories.