Documentation ¶
Index ¶
- func InitTatoebaPluginRouter(plugin *gin.RouterGroup, tatoebaClient pluginCommonService.TatoebaClient)
- func InitTranslatorPluginRouter(plugin *gin.RouterGroup, translatorClient pluginCommonService.TranslatorClient)
- func NewRouter(googleUserUsecase authU.GoogleUserUsecase, ...) *gin.Engine
- type AudioHandler
- type NewIteratorFunc
- type PrivateWorkbookHandler
- type ProblemHandler
- type RecordbookHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitTatoebaPluginRouter ¶
func InitTatoebaPluginRouter(plugin *gin.RouterGroup, tatoebaClient pluginCommonService.TatoebaClient)
func InitTranslatorPluginRouter ¶
func InitTranslatorPluginRouter(plugin *gin.RouterGroup, translatorClient pluginCommonService.TranslatorClient)
func NewRouter ¶
func NewRouter(googleUserUsecase authU.GoogleUserUsecase, guestUserUsecase authU.GuestUserUsecase, studentUsecaseWorkbook studentU.StudentUsecaseWorkbook, studentUsecaseProblem studentU.StudentUsecaseProblem, studentUsecaseAudio studentU.StudentUsecaseAudio, studentUsecaseStudy studentU.StudentUsecaseStudy, translatorClient pluginCommonService.TranslatorClient, tatoebaClient pluginCommonService.TatoebaClient, newIteratorFunc NewIteratorFunc, corsConfig cors.Config, appConfig *config.AppConfig, authConfig *config.AuthConfig, debugConfig *config.DebugConfig) *gin.Engine
Types ¶
type AudioHandler ¶
func NewAudioHandler ¶
func NewAudioHandler(studentUsecaseAudio studentU.StudentUsecaseAudio) AudioHandler
type NewIteratorFunc ¶
type NewIteratorFunc func(ctx context.Context, workbookID appD.WorkbookID, problemType string, reader io.Reader) (appS.ProblemAddParameterIterator, error)
type PrivateWorkbookHandler ¶
type PrivateWorkbookHandler interface { FindWorkbooks(c *gin.Context) FindWorkbookByID(c *gin.Context) AddWorkbook(c *gin.Context) UpdateWorkbook(c *gin.Context) RemoveWorkbook(c *gin.Context) }
func NewPrivateWorkbookHandler ¶
func NewPrivateWorkbookHandler(studentUsecaseWorkbook studentU.StudentUsecaseWorkbook) PrivateWorkbookHandler
type ProblemHandler ¶
type ProblemHandler interface { FindProblems(c *gin.Context) FindAllProblems(c *gin.Context) FindProblemsByProblemIDs(c *gin.Context) FindProblemByID(c *gin.Context) AddProblem(c *gin.Context) ImportProblems(c *gin.Context) UpdateProblem(c *gin.Context) RemoveProblem(c *gin.Context) }
func NewProblemHandler ¶
func NewProblemHandler(studentUsecaseProblem studentU.StudentUsecaseProblem, newIterator func(ctx context.Context, workbookID domain.WorkbookID, problemType string, reader io.Reader) (service.ProblemAddParameterIterator, error)) ProblemHandler
type RecordbookHandler ¶
type RecordbookHandler interface { FindRecordbook(c *gin.Context) SetStudyResult(c *gin.Context) GetCompletionRate(c *gin.Context) }
func NewRecordbookHandler ¶
func NewRecordbookHandler(studentUsecaseStudy studentU.StudentUsecaseStudy) RecordbookHandler
Source Files ¶
Click to show internal directories.
Click to hide internal directories.