Documentation ¶
Index ¶
- func NewProblemQuotaHandler(pf service.ProcessorFactory, rf service.RepositoryFactory) service.ProblemQuotaHandler
- func NewRepositoryFactory(ctx context.Context, db *gorm.DB, driverName string, location *time.Location, ...) (service.RepositoryFactory, error)
- func NewSynthesizerClient(endpoint, username, password string, timeout time.Duration) (service.SynthesizerClient, error)
- func NewTransaction(db *gorm.DB, rff RepositoryFactoryFunc) (service.Transaction, error)
- func ReadCSV(fileReader io.Reader, fn func(i int, line []string) error) error
- type ProblemTypes
- type RepositoryFactoryFunc
- type StudyTypes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProblemQuotaHandler ¶
func NewProblemQuotaHandler(pf service.ProcessorFactory, rf service.RepositoryFactory) service.ProblemQuotaHandler
func NewRepositoryFactory ¶
func NewRepositoryFactory(ctx context.Context, db *gorm.DB, driverName string, location *time.Location, jobRff jobG.RepositoryFactoryFunc, userRff userG.RepositoryFactoryFunc, pf service.ProcessorFactory, problemRepositories map[domain.ProblemTypeName]func(context.Context, *gorm.DB) (service.ProblemRepository, error)) (service.RepositoryFactory, error)
func NewSynthesizerClient ¶
func NewTransaction ¶
func NewTransaction(db *gorm.DB, rff RepositoryFactoryFunc) (service.Transaction, error)
Types ¶
type ProblemTypes ¶
type ProblemTypes interface { ToProblemTypeID(problemType domain.ProblemTypeName) (uint, error) ToProblemType(studyTypeID uint) (domain.ProblemTypeName, error) }
func NewProblemTypes ¶
func NewProblemTypes(data []domain.ProblemType) ProblemTypes
type RepositoryFactoryFunc ¶
type StudyTypes ¶
type StudyTypes interface { ToStudyTypeID(studyType domain.StudyTypeName) (uint, error) ToStudyType(studyTypeID uint) (domain.StudyTypeName, error) Values() []domain.StudyType }
func NewStudyTypes ¶
func NewStudyTypes(data []domain.StudyType) StudyTypes
Source Files ¶
- csv_reader.go
- init.go
- master_data.go
- problem_quota_handler.go
- problem_type_repository.go
- recordbook_repository.go
- repository_factory.go
- stat_repository.go
- study_record_repository.go
- study_stat_repository.go
- study_type_repository.go
- synthesizer_client.go
- transaction.go
- user_quota_repository.go
- workbook_repository.go
Click to show internal directories.
Click to hide internal directories.