Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAppRouter ¶
func NewAppRouter(initPublicRouterFunc []InitRouterGroupFunc, initPrivateRouterFunc []InitRouterGroupFunc, corsConfig cors.Config, appConfig *config.AppConfig, authConfig *config.AuthConfig, debugConfig *config.DebugConfig) (*gin.Engine, error)
Types ¶
type AdminHandler ¶
func NewAdminHandler ¶
func NewAdminHandler(adminUsecase usecase.AdminUsecase, newTatoebaSentenceAddParameterReader func(reader io.Reader) service.TatoebaSentenceAddParameterIterator, newTatoebaLinkAddParameterReader func(reader io.Reader) service.TatoebaLinkAddParameterIterator) AdminHandler
type InitRouterGroupFunc ¶
type InitRouterGroupFunc func(parentRouterGroup *gin.RouterGroup, middleware ...gin.HandlerFunc) error
func NewInitAdminRouterFunc ¶
func NewInitAdminRouterFunc(adminUsecase usecase.AdminUsecase) InitRouterGroupFunc
func NewInitUserRouterFunc ¶
func NewInitUserRouterFunc(userUsecase usecase.UserUsecase) InitRouterGroupFunc
type UserHandler ¶
type UserHandler interface { FindSentencePairs(c *gin.Context) FindSentenceBySentenceNumber(c *gin.Context) }
func NewUserHandler ¶
func NewUserHandler(userUsecase usecase.UserUsecase) UserHandler
Click to show internal directories.
Click to hide internal directories.