Documentation ¶
Index ¶
- Variables
- func IsAlreadyExistEntity(err error) bool
- func IsNotFoundEntity(err error) bool
- type CompetencyRepository
- type CompetencyUpdate
- type IndicatorRepository
- type IndicatorUpdate
- type LevelRepository
- type LevelUpdate
- type Logger
- type ProgramRepository
- type ProgramUpdate
- type SpecialtyRepository
- type SpecialtyUpdate
- type UgsnRepository
- type UgsnUpdate
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NotFoundEntity = errors.New("not found") AlreadyExistsEntity = errors.New("already exist") )
Functions ¶
func IsAlreadyExistEntity ¶
func IsNotFoundEntity ¶
Types ¶
type CompetencyRepository ¶
type CompetencyRepository interface { AddCompetency(ctx context.Context, competency *competencies.Competency) error GetCompetency(ctx context.Context, id string) (*competencies.Competency, error) Update(ctx context.Context, id string, update CompetencyUpdate) error Delete(ctx context.Context, id string) error }
type CompetencyUpdate ¶
type CompetencyUpdate func(ctx context.Context, competency *competencies.Competency) (*competencies.Competency, error)
type IndicatorRepository ¶
type IndicatorRepository interface { AddIndicator(ctx context.Context, indicator *competencies.Indicator) error GetIndicator(ctx context.Context, id string) (*competencies.Indicator, error) Update(ctx context.Context, id string, updater IndicatorUpdate) error Delete(ctx context.Context, id string) error }
type IndicatorUpdate ¶
type IndicatorUpdate func(ctx context.Context, level *competencies.Indicator) (*competencies.Indicator, error)
type LevelRepository ¶
type LevelUpdate ¶
type ProgramRepository ¶
type ProgramUpdate ¶
type SpecialtyRepository ¶
type SpecialtyUpdate ¶
type SpecialtyUpdate func(ctx context.Context, specialty *education.Speciality) (*education.Speciality, error)
type UgsnRepository ¶
Click to show internal directories.
Click to hide internal directories.